As mentioned before Asterisk is down too for some reason. Anyhow, I was able to use Terminal from within WinSCP to do a reboot. I can't believe I wasted all day on this. Thanks guys
---------------------------------------- > Date: Mon, 12 Jan 2009 16:53:11 -0500 > From: [email protected] > To: [email protected] > Subject: Re: [on-asterisk] A linux question > > Bruce Nik wrote: >> Should the following file (if run from IE) reboo the system: >> /var/www/cgi-bin/reboot >> >> #!/bin/bash >> echo "Content-type: text/html" >> echo "" >> echo "" >> echo " Rebooting now $(shutdown -r now)" >> echo "" >> >> >> Trying to find a way to restart a remote server that only gives scp access >> and apache is running too. > > Not unless the service that will be executing the script, Apache in this > case, has super user access, and it probably (shouldn't, and I hope for > you sake) doesn't. There are ways around this but this seems like a bad > way to go. You have SCP but not SSH access? > > A system command from a call to Asterisk seems like a good way to go, > and is on topic for this list :) > > -- > Cliff Flood > Systems Administrator > Jazinga Inc. > +1 416 548 4755 x106 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > _________________________________________________________________ --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
