Michael Grant <[EMAIL PROTECTED]> wrote:

> More than once, through carelessness, and I'm sure I'm not alone, I
> have inadvertently shutdown or rebooted the wrong machine.  I'm sure
> some of you know that all too familiar feeling when you see
> "Connection closed" instead of your desktop being rebooted.
> 
> I have a suggestion with respect to these commands.  What if they
> could be modified to require the hostname of the machine as their
> first argument, otherwise, they refuse to bring the machine down?

Write two scripts that check for those additional arguments and name them 
'shutdown' and 'reboot'.  Then ensure that they exist earlier in your 
PATH than the actual shutdown and reboot binaries.

-- 
Sahil Tandon <[EMAIL PROTECTED]>
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to