LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Process working differently in Crontab from Command Line - Sox / MP3 (https://www.linuxquestions.org/questions/linux-newbie-8/process-working-differently-in-crontab-from-command-line-sox-mp3-4175544740/)

deepGC 06-07-2015 12:07 PM

Process working differently in Crontab from Command Line - Sox / MP3
 
For some reason, I can handle mp3 files from command line using sox with no issues, however if I schedule a script to run using crontab, I get the following message:

sox formats: no handler for file extension `mp3'

Obviously the environment at which sox is being run under crontab, is different to the command line environment,

How do I correct this?

Thanks

deepGC 06-07-2015 02:23 PM

Solved

I copied the environment variables from command line, and assigned them within the script


All times are GMT -5. The time now is 04:17 AM.