SOLVED Re: Checking cronjob syntax

Frank Murphy frankly3d at gmail.com
Mon Aug 27 06:52:28 UTC 2012


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:
> test `date +\%A` = Sunday

Thank you my friend,
I just couldn't see it without your aid.

-- 
Regards,
Frank
"Jack of all, fubars"


More information about the users mailing list