note 71154 added to features.commandline
| From: | goalaineatgmaildontcom at osu1 dot php dot net | Date: | Tue, 14 Nov 2006 08:57:12 +0000 |
| Subject: | note 71154 added to features.commandline | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119709@lists.php.net to get a copy of this message | ||
An addition to my previous post (you can replace it)
If your php script doesn't run with shebang (#!/usr/bin/php),
and it issues the beautifull and informative error message:
"Command not found." just dos2unix yourscript.php
et voila.
If you still get the "Command not found."
Just try to run it as ./myscript.php , with the "./"
if it works - it means your current directory is not in the executable search path.
If your php script doesn't run with shebang (#/usr/bin/php),
and it issues the beautifull and informative message:
"Invalid null command." it's probably because the "!" is missing in the the
shebang line (like what's above) or something else in that area.
\Alon
----
Server IP: 216.194.113.175
Probable Submitter: 72.232.241.22
----
Manual Page -- http://www.php.net/manual/en/features.commandline.php
Edit -- https://master.php.net/note/edit/71154
Del: integrated -- https://master.php.net/note/delete/71154/integrated
Del: useless -- https://master.php.net/note/delete/71154/useless
Del: bad code -- https://master.php.net/note/delete/71154/bad+code
Del: spam -- https://master.php.net/note/delete/71154/spam
Del: non-english -- https://master.php.net/note/delete/71154/non-english
Del: in docs -- https://master.php.net/note/delete/71154/in+docs
Del: other reasons-- https://master.php.net/note/delete/71154
Reject -- https://master.php.net/note/reject/71154
Search -- https://master.php.net/manage/user-notes.php