Walter Valenti writes:
> shell
>
> >
> > Pol Hallen writes:
> >> > Sempre in tema del topic "Script lanciato da crontab non torna al
> >> > prompt?" come redirigo l'output di uno script in cron alla
> > shell
> >> > virtuale di un utente/i? (quindi non /dev/ttyX)
> >> >
> >> > grazie!
> >>
> >> mi rispondo in parte:
> >>
> >> echo "test|write user pts/0
> >>
> >> ma se dovessi avere 10 shell aperte come invio a tutti? (incluso root?)
> >
> > wall ?
> >
>
> NAME
> wall — write a message to users
>
> SYNOPSIS
> wall [-n] [-t TIMEOUT] [file]
>
> DESCRIPTION
> Wall displays the contents of file or, by default, its standard input,
> on the ter‐
> minals of all currently logged in users. The command will cut over 79
> character
> long lines to new lines. Short lines are white space padded to have 79
> characters.
> The command will always put carriage return and new line at the end of
> each line.
>
> Only the super-user can write on the terminals of users who have chosen
> to deny
> messages or are using a program which automatically denies messages.
>
L'installazione base di debian non ha wall setuid, quindi
echo "prova" | wall
da parte di un qualsiasi user peone funziona.
Il problema è che wall scrive nelle *ty legate ad una login shell,
quindi non va bene per la necessità originaria.
Simpatico problema di multiplexing dell'output... Mi sa che conviene
mettere l'output su un file temporaneo...
--
/\ ___ Ubuntu: ancient
/___/\_|_|\_|__|___Gian Uberto Lauri_____ African word
//--\| | \| | Integralista GNUslamico meaning "I can
\/ coltivatore diretto di software not install
già sistemista a tempo (altrui) perso... Debian"
Warning: gnome-config-daemon considered more dangerous than GOTO
--
Per REVOCARE l'iscrizione alla lista, inviare un email a
[email protected] con oggetto "unsubscribe". Per
problemi inviare un email in INGLESE a [email protected]
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]