Re: Checking cronjob syntax

2012-08-27 Thread Charlie Brune
On 08/27/2012 01:44 AM, Sjoerd Mullender wrote: On 2012-08-27 08:39, Frank Murphy wrote: Today being Monday: 45 5 22-28 * * test 'date +\%A' = Sunday && yum -v clean plugins Nothing appears to have happened. (no email to root, usual cron stuff) So taking the bit from "test" eg: test 'date +\%A'

SOLVED Re: Checking cronjob syntax

2012-08-26 Thread Frank Murphy
On 27/08/12 07:44, Sjoerd Mullender wrote: You're using the wrong quotes. As it stands, your comparing the string "date +%A" with the string "Sunday". Presumably what you want is to compare the output of the command "date +%S" with the string "Sunday". You need to use "backticks" for that: tes

Re: Checking cronjob syntax

2012-08-26 Thread Sjoerd Mullender
On 2012-08-27 08:39, Frank Murphy wrote: > Today being Monday: > 45 5 22-28 * * test 'date +\%A' = Sunday && yum -v clean plugins > > Nothing appears to have happened. (no email to root, usual cron stuff) > So taking the bit from "test" eg: > test 'date +\%A' = Sunday && blkid (all days in turn) >

Checking cronjob syntax

2012-08-26 Thread Frank Murphy
Today being Monday: 45 5 22-28 * * test 'date +\%A' = Sunday && yum -v clean plugins Nothing appears to have happened. (no email to root, usual cron stuff) So taking the bit from "test" eg: test 'date +\%A' = Sunday && blkid (all days in turn) blkid doesn't run Where have I slipped up -- Regar