LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-06-2005, 07:29 PM   #1
deadite66
LQ Newbie
 
Registered: May 2003
Location: Great Yarmouth, UK
Distribution: Ubuntu 9.10 i386
Posts: 12

Rep: Reputation: 0
cron problems


i have this script which works perfectly outside of cron.
i'm trying to convert 3 x 1 hour asf files to mp3
when running on the 1 hour files it starts making the first mp3 then dies at 792k
tried it with some smaller music files and mplayer dies at 1.6MB should be around 35MB wav file

seems like the script just dies.

Code:
#!/bin/bash

/usr/bin/mplayer  /home/sharedfiles/webrecordings/today/lbc01.wma -ao pcm -aofile /home/sharedfiles/webrecordings/today/lbc01.wav -vc dummy -vo null
/usr/bin/lame -b 128 -m m --resample 44.1 --lowpass 12 --lowpass-width 0 --noshort /home/sharedfiles/webrecordings/today/lbc01.wav /home/sharedfiles/webrecordings/today/lbc01.mp3

/usr/bin/mplayer  /home/sharedfiles/webrecordings/today/lbc02.wma -ao pcm -aofile /home/sharedfiles/webrecordings/today/lbc02.wav -vc dummy -vo null
/usr/bin/lame -b 128 -m m --resample 44.1 --lowpass 12 --lowpass-width 0 --noshort /home/sharedfiles/webrecordings/today/lbc02.wav /home/sharedfiles/webrecordings/today/lbc02.mp3 

/usr/bin/mplayer  /home/sharedfiles/webrecordings/today/lbc03.wma -ao pcm -aofile /home/sharedfiles/webrecordings/today/lbc03.wav -vc dummy -vo null
/usr/bin/lame -b 128 -m m --resample 44.1 --lowpass 12 --lowpass-width 0 --noshort /home/sharedfiles/webrecordings/today/lbc03.wav /home/sharedfiles/webrecordings/today/lbc03.mp3 

rm /home/sharedfiles/webrecordings/today/lbc01.wma
rm /home/sharedfiles/webrecordings/today/lbc02.wma
rm /home/sharedfiles/webrecordings/today/lbc03.wma

rm /home/sharedfiles/webrecordings/today/lbc01.wav
rm /home/sharedfiles/webrecordings/today/lbc02.wav
rm /home/sharedfiles/webrecordings/today/lbc03.wav

mv /home/sharedfiles/webrecordings/today /home/sharedfiles/webrecordings/`date +%Y%m%d`-lbc-NickFerrari
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cron Problems eagle683 Programming 6 07-26-2005 07:26 PM
Cron Problems DNAphil Linux - Newbie 1 07-12-2005 08:56 AM
problems using cron Mugatu Linux - Software 3 02-26-2004 03:15 PM
Cron problems goochable Linux - General 3 11-15-2003 09:47 PM
Cron problems goochable Linux - Newbie 3 04-17-2001 08:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration