php shell_exec($cmd) do not run in a cronjob

自作多情 提交于 2019-12-10 11:43:14
问题 sorry for that (I believe) poor question, but google and other articles in this forum can't help me... I'll run the a php script with following code in it: $cmd="duck -u user_name -p pwd -parallel 1 -e overwrite -y --throttle 1024 --upload path to remote file absolute_path_to_local_file"; $shellResponse=shell_exec($cmd); This works well, when I call this php file in the browser. But it fails, when I call the script within a cronjob. With a cronjob i get following errormessage: sh:1: duck not