init.d scripts

Tom Metro blu at vl.com
Mon Jan 30 10:52:25 EST 2006


David Kramer wrote:
> My problem is I am setting up to run a PHP script, so the command needs to be
> "php myscriptname.php foo bar"...

Use a shebang line.

myscriptname.php:
#!/path/to/php
...


  -Tom

-- 
Tom Metro
Venture Logic, Newton, MA, USA
"Enterprise solutions through open source."
Professional Profile: http://tmetro.venturelogic.com/



More information about the Discuss mailing list