LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-07-2015, 12:07 PM   #1
deepGC
LQ Newbie
 
Registered: May 2015
Posts: 21

Rep: Reputation: Disabled
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
 
Old 06-07-2015, 02:23 PM   #2
deepGC
LQ Newbie
 
Registered: May 2015
Posts: 21

Original Poster
Rep: Reputation: Disabled
Solved

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Script is not running properly through crontab but working from command line mitter1989 Linux - Server 6 04-24-2014 12:16 AM
From command line to a crontab script alaios Programming 12 04-20-2013 04:02 AM
How to access & use command line utilities in bash scripts? (spec. SoX) jarednielsen Linux - Newbie 3 03-30-2013 11:12 AM
LXer: How to use SoX - a command line audio utility tool LXer Syndicated Linux News 0 03-19-2013 09:12 PM
LXer: Powerful Multimedia Command-Line Tools, Part I - SoX LXer Syndicated Linux News 0 11-30-2007 10:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration