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 "<html><head><title>Bash as CGI"
echo "</title></head><body>"
echo "<h1>Rebooting now $(shutdown -r now)</h1>"
echo "</body></html>"
 
 
Trying to find a way to restart a remote server that only gives scp access and 
apache is running too.
 
Thanks
 

_________________________________________________________________

Reply via email to