Re: (0/T) executeing script below public
| From: | Ryan A | Date: | Fri, 12 Dec 2003 22:21:51 +0000 |
| Subject: | Re: (0/T) executeing script below public | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-172611@lists.php.net to get a copy of this message | ||
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