Script is Running!

Jonathan hutchins at opus1.com
Fri Jun 8 03:08:07 CDT 2001


Well, not sure exactly what it didn't like, but this works:

#!/bin/sh
echo "Content-type: text/plain"
echo
echo "Just turn off the Toll Saver."
echo "Is the flag there?"
echo
ls -la /var/spool/voice/.flag
echo "Delete it anyway."
rm -f /var/spool/voice/.flag
echo "Done."

Placed in the cgi-bin directory as script.cgi, chmod a+x, and called with
http://hostname/cgi-bin/script.cgi I get:

Just turn off the Toll Saver. 
Is the flag there? 
-rw-r--r-- 1 root root 28 Jun 7 21:53 /var/spool/voice/.flag 
Delete it anyway. 
Done. 

Yay!

Thanks for your help everybody!




More information about the Kclug mailing list