RE: [PHP] (0/T) executeing script below public

From: Jay Blanchard (jay.blanchard_at_niicommunications.com)
Date: 12/12/03


Date: Fri, 12 Dec 2003 16:13:01 -0600
To: "Jay Blanchard" <jay.blanchard@niicommunications.com>, "Ryan A" <ryan@coinpass.com>, <php-general@lists.php.net>


[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



Relevant Pages