Re: [PHP] CLI: unable to exec shell commands

2005-05-30 Thread Richard Lynch
You should always use a full path to commands and file names in exec, because you never know what $PATH shell value will be... You may also be working under some kind of secure enviroment such as a chroot shell thingie (about which I know almost nothing) or SE Linux (in which case there should be

[PHP] CLI: unable to exec shell commands

2005-05-28 Thread Andy Pieters
Hi all I have several scripts that stoped working. All those scripts have in common that they call shell commands. To find out what was going on, I did a little test cat ? | php ?php echo exec test\n; exec(dir,$output,$errs); ? exec test sh: /usr/local/php/bin/dir: No such file or