[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: script di cron e output su shell



 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.

     Reading from a file is refused when the invoker is not superuser and the program
     is suid or sgid.



Reply to: