In message <[EMAIL PROTECTED]>, writes:
  >     The pppd man pages say that the ip-up and ip-down scripts are
  >executed with "standard input, output and error streams redirected
  >to /dev/null." 
  >
  >     I would like to use these scripts, but I want them to echo
  >messages to the console.  How can I overcome this redirection to
  >/dev/null?
 
In your script, simply say

 echo message >/dev/console

or

 echo message >/dev/tty

as appropriate.  

Redirection at execution time does not prevent you from opening new
files in the script itself; it merely determines the defaults.
-- 
Oliver Elphick                                [EMAIL PROTECTED]
Isle of Wight                                  http://lfix.co.uk/oliver

     Make it idiot-proof, and someone will breed a better idiot.



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to