On Dec 01 10:53:40, 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.
Why? Somebody already does want the system to actually halt. > 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