[EMAIL PROTECTED] wrote on 22/12/2003 11:32:46 AM:

> On Mon, 2003-12-22 at 11:03, Trevor Tregoweth wrote:
> > Hi All 
> > 
> > was wondering if someone could give me a little help, i want to be
> > able to run commands from a web interface on a Linux (redhat 9)
> > machine.....
> > 
> > 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.

Yeah, system(), exec() or back-tick (`), pick your flavor for the job :)

Scott

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to