
09-03-2002, 01:06 PM
I assume you mean the machine? Or restart the server itself?
The reboot command in linux should reboot the machine. If for whatever reason it wont allow it because you're connected via SSH try echoing the appropriate lines into a perl script. I'd also add a brief wait period to give you time to disconnect lest it cause you problems. Then invoke the script.
I forget where I saw it but some linux version of a stats program had a perl script in it to restart the server, not the machine. Search it out?
|