what i would like is a start / stop link on a web page to run sat the following
eg....../etc/rc.d/init.d/network start
Look at the shell_exec() function in php. There is probably a similar function like this in perl (Gus!) or you could use CGI with an interpreter like /bin/sh.
i think it is also necessary to switch the user to root to restart the network. and therefor it will be necessary to have a set-suid-wrapper which starts a shell for execution. calling the script without root permission wont work. except you run the apache or what else as root (i hope not :))) )
cya -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
