On Tue, Dec 01, 2009 at 10:53:40AM -0600, Theodore Wynnychenko wrote:
> Hello:
> 
> I have been unable to discover this answer for myself.  If I missed this
> somewhere, sorry for bothering the list.
> 
> Anyway, I would like to have the system confirm a shutdown or reboot before
> actually doing it.
> 
> I could do something like rename the shutdown/reboot/halt commands, and then
> write a script to ask for conformation before shutting down/etc; but, I
> seems like the cleanest solution would be to run a script from rc.shutdown
> to ask for conformation.
> 
> However, I can't figure out how to direct output/input from a script run in
> rc.shutdown to the user's terminal (ssh connection, xterm, console) that
> started the shutdown/reboot/halt process.  Anything I put in rc.shutdown is
> displayed directly to the console.
> 
> I also don't see an obvious environment variable that I can use to reliably
> redirect output.
> 
> What am I missing?
> 
> Thanks
> 

Or don't give to your useless staff root access...

-- 
DISCLAIMER: http://goldmark.org/jeff/stupid-disclaimers/ 
This message will self-destruct in 3 seconds.

Reply via email to