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

Ernest De Leon edeleonjr at gmail.com
Mon Jul 7 15:50:42 CDT 2008


I would recommend just creating one script to do what you want and dropping
it into the cron daily folder.

Ernest

On Mon, Jul 7, 2008 at 1:24 PM, Marc Ripley <misteratomic at gmail.com> wrote:

> 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
> --
> _______________________________________________
> SATLUG mailing list
> SATLUG at satlug.org
> http://alamo.satlug.org/mailman/listinfo/satlug to unsubscribe
> Powered by Rackspace (www.rackspace.com)
>



-- 
Ernest de Leon
http://www.smbtechadvice.com

"They who can give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety." - A common 18th Century sentiment
voiced by Benjamin Franklin

"A patriot must always be ready to defend his country against his
government." - Edward Abbey

"All that is necessary for evil to triumph is for good men to do nothing." -
Edmund Burke, English statesman and political philosopher (1729-1797)


More information about the SATLUG mailing list