This is often because the program tries to read stdin and you have still it connected to your interactive session. Try diverting stdin from /dev/null as well.
BTW, you don’t need >> /dev/null since there is nothing in /dev/null to append to, by definition. Or equivalently a seek to EOF of /dev/null is a no-op.
Hi,
thank you for your reply. It somehow still doesn’t work.
It is very strange. It worked perfectly just a few days ago. I want this script to run, when I visit a Website.
It executes the other php file.
<?php
exec(“php /absolute_path_to_file/test.php”);
?>
if this test.php is smth like:
<?php
exec (“rm /absolute_path_to_file/video.flv”);
?>
It works perfectly, but as soon as I try to get a thumbnail using ffmpeg, it fails. But if I use the same commant in Terminal it works again.
I really don’t know why. I was setting the permissions of the directory to 775 and the owner to wwwrun:www