View Single Post
Old
  (#2)
[NBK] G.I. Jerk is Offline
Senior Member
 
Posts: 292
Join Date: Apr 2002
Location: Calgary, Ab. CanaDUH
 Send a message via ICQ to [NBK] G.I. Jerk Send a message via MSN to [NBK] G.I. Jerk  
Default 09-03-2002, 12: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?
  
Reply With Quote