<?
$do_command = "/usr/bin/find /mypath -type f -print |sed -e 's|blah|otherblah|'> /mypath/myfile"
exec($do_command);
?>
Does anyone know why can not run this command on php? I have passthru($do_command) in my code to see what it acts but no output.
Yes, I can run this command on shell.
And I am sure it's not relativing to the safe_mode option in php.ini since I've set the safe_mode_exec_dir