[SATLUG] I can not get cron jobs to run in Ubuntu Hardy Heron

Marc Ripley misteratomic at gmail.com
Mon Jul 7 15:24:37 CDT 2008


I've set up a cron job to record some late night conspiracy radio but
it never appears to run.
My knowledge of linux is limited but I can create a crontab under my user.
I've added my user account to the cron group.
I'll include a copy of the crontab file here.

----------------
05 23 * * 1-5 cd /home/marc/Desktop ; arecord -d 3180 -c 1 -f S16 -r
32000 -D hw:1,0 C2C_`date +%y_%m_%d`_H4.wav ; lame -v -V9 C2C_`date
+%y_%m_%d`_H4.wav C2C_`date +%y_%m_%d`_H4.mp3 ; rm C2C_`date
+%y_%m_%d`_H4.wav #hour4m-f
05 00 * * * cd /home/marc/Desktop ; arecord -d 3300 -c 1 -f S16 -r
32000 -D hw:1,0 C2C_`date +%y_%m_%d`_H1.wav ; lame -v -V9 C2C_`date
+%y_%m_%d`_H1.wav C2C_`date +%y_%m_%d`_H1.mp3 ; rm C2C_`date
+%y_%m_%d`_H1.wav #hour1
05 01 * * * cd /home/marc/Desktop ; arecord -d 3300 -c 1 -f S16 -r
32000 -D hw:1,0 C2C_`date +%y_%m_%d`_H2.wav ; lame -v -V9 C2C_`date
+%y_%m_%d`_H2.wav C2C_`date +%y_%m_%d`_H2.mp3 ; rm C2C_`date
+%y_%m_%d`_H2.wav #hour2
05 02 * * * cd /home/marc/Desktop ; arecord -d 3300 -c 1 -f S16 -r
32000 -D hw:1,0 C2C_`date +%y_%m_%d`_H3.wav ; lame -v -V9 C2C_`date
+%y_%m_%d`_H3.wav C2C_`date +%y_%m_%d`_H3.mp3 ; rm C2C_`date
+%y_%m_%d`_H3.wav #hour3
05 03 * * 0 cd /home/marc/Desktop ; arecord -d 3180 -c 1 -f S16 -r
32000 -D hw:1,0 C2C_`date +%y_%m_%d`_H4.wav ; lame -v -V9 C2C_`date
+%y_%m_%d`_H4.wav C2C_`date +%y_%m_%d`_H4.mp3 ; rm C2C_`date
+%y_%m_%d`_H4.wav #hour4satn
05 03 * * 1 cd /home/marc/Desktop ; arecord -d 3180 -c 1 -f S16 -r
32000 -D hw:1,0 C2C_`date +%y_%m_%d`_H4.wav ; lame -v -V9 C2C_`date
+%y_%m_%d`_H4.wav C2C_`date +%y_%m_%d`_H4.mp3 ; rm C2C_`date
+%y_%m_%d`_H4.wav #hour4sunn
----------------

Yes, I know it's crazy long but I have no experience with shell
scripts.  I will later save these files to individual folders but this
is my setup

A separate cron job to shut down the computer after (hopefully) my
scheduled recordings take place (owned by root) also fails.

----------------
10 4 * * 0-1 shutdown -h +2
10 3 * * 2-6 shutdown -h +2
----------------

Don't know where to turn.  I've googled and searched but can not see
where I am failing.
I have very little understanding of chmod and it's ilk.  I barely know
how to remove write protection of files.

Well, thanks if you can help.

-- 
Marc


More information about the SATLUG mailing list