Hello,
I am having some serious problems executing a command on my redhat linux
machine using exec, shell_exec, or any variants thereof.
I have a string saved into a variable like:
$mystring = "/usr/local/bin/lmc -e add /music/whatever.mp3";
Then I try to execute w/ something like:
$last_line = exec($mystring) ;
echo "{$last_lin e}";
This does absolutely nothing but when I run the same thing from the
command line it works fine. I also have made sure that it is not running
in safety_mode. The current user is nobody, but the program is accessable
to everyone. Any thoughts or places where I need ot provide more info?
Any suggestions to troubleshoot?
Brian
PS: this is driving me bonkers.
I am having some serious problems executing a command on my redhat linux
machine using exec, shell_exec, or any variants thereof.
I have a string saved into a variable like:
$mystring = "/usr/local/bin/lmc -e add /music/whatever.mp3";
Then I try to execute w/ something like:
$last_line = exec($mystring) ;
echo "{$last_lin e}";
This does absolutely nothing but when I run the same thing from the
command line it works fine. I also have made sure that it is not running
in safety_mode. The current user is nobody, but the program is accessable
to everyone. Any thoughts or places where I need ot provide more info?
Any suggestions to troubleshoot?
Brian
PS: this is driving me bonkers.
Comment