Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Mike Gaskins
July 24, 2006, 8:36 pm
rate this thread
running into some problems getting it to run the command to release a
The main exertp of the script is below:
echo "Releasing /var/amavis/quarantine/" . $_POST['release'] . " to
user " . $_POST['user'] . "<br><br>";
$command = "/usr/sbin/amavisd-release " . $_POST['release'] . " " .
echo $command . "<br>";
echo "<br>" . $return_val;
This command works fine from the command line, but won't run using this
code. It comes back with a return code of 13 each time. I've also
tried the exec and popen functions in place of passthru() with no luck.
If it matters any, amavisd-release is an executable Perl script.
Re: Problem with executing a command from within my script
The meaning of return codes depends on context, but if it was raised by the OS
then 13 matches "Permission denied", and that seems fairly likely. The user and
environment will be quite different between your command line and the webserver
Andy Hassall :: firstname.lastname@example.org :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool