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

Re: /etc/ppp/ip-up behavior



In message <[🔎] m0wobCI-000ZAaC@bobspc>, 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                                Oliver.Elphick@lfix.co.uk
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
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: