Script does not run under cron but runs manually
问题 I have a script that a developer wrote for me which performs various functions mainly related to ffmpeg. When I run the script manually using sh /home/site/rawvids/encode.sh > /home/site/rawvids/log.txt The script runs fine but when it runs through cron it fails with error code 127 Any ideas? ls -l on the script shows: -rwxrwxrwx 1 site nobody 3786 Jul 23 17:07 /home/site/rawvids/encode.sh* 回答1: Error 127 means "command not found". It is likely that you run in the script some commands that