Hey,
thanks, didnt know that.
But is it possible to also add the start or stop parameter?

Cheers,
-Ryan

> You could just as easily
>
> <?php shell_exec("/path/to/script/scriptname start"); ?>
>
> Assuming that:
>
> 1) the webserver has rights to execute the script
> 2) you *must* execute this from the webserver
> 3) it's not a script to start/stop the webserver (since you obviously
> wouldn't be able to start it this way)
> 4) your php script is properly secured.
>
> Otherwise, just SSH in.  It's more secure and just as easy.
>
> Bob
>
> ----- Original Message ----- 
> From: "Ryan A" <[EMAIL PROTECTED]>
> To: "Jay Blanchard" <[EMAIL PROTECTED]>
> Cc: <[EMAIL PROTECTED]>
> Sent: Friday, December 12, 2003 2:21 PM
> Subject: Re: [PHP] (0/T) executeing script below public
>
>
> > Hey,
> > Thanks for replying.
> >
> > The server is on Linux and is remotely hosted, my local machine is on
> win2k
> > pro.
> >
> > A client wants me to set this up, I have setup the whole thing but this
> > needs to be started....
> >
> > you keep mentioning "command line", what command line?
> > You mean I should SSH in?
> >
> > (As you can see, am a newbie in shell scripts and ssh etc - kindly
excuse)
> >
> > Kindly reply.
> >
> > Thanks,
> > -Ryan
> >
> >
> >
> >
> >
> >
> >
> > [snip]
> > #!/bin/sh
> >
> > <scriptname> start
> > (or)
> > <scriptname> stop
> > [/snip]
> >
> > It is a shell script. They are usually placed in /usr/local/bin/ and
> > chmod'd to execute. To run it you type this at the command line;
> >
> > scriptname start
> > (or)
> > scriptname stop
> >
> > This script accepts one argument, either 'stop' or 'start'
> > [/snip]
> >
> > I should have added that you can run them from other folders using the
> > './scriptname arg' from the command line. Depends on OS
> >
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to