[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Sheflug] Crontab sillyness.
Its waiting for the day of the month to match 1-5 or 6-7 .
The day of the week is the last field.
cheers
Paul
On Sun, 14 Jan 2001, Barrie Bremner wrote:
> This should be an easy one to fix.
>
> I don't like getting out of bed in the morning, so I've written a short
> script to turn the volume up on my box and start XMMS playing some loud
> music to get me up in the mornings.
> I've put the script into a crontab (using crontab -e as my user - baz).
> The script works on it's own, and it did start at 0705hrs when my
> crontab was:
>
> SHELL=/bin/bash
> PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
> MAILTO=baz
> HOME=/home/baz
>
> 05 7 * * * /home/baz/wakeup.sh
>
> However, I'd rather have a lie-in on Sat and Sun, so I changed the times
> to:
>
> 05 7 1-5 * * /home/baz/wakeup.sh
> 00 9 6,7 * * /home/baz/wakeup.sh
>
> And it hasn't run on Sat or Sun. Dunno what will happen tomorrow,
> unsurprisingly.
>
> According to man 5 crontab, 0 and 7 is sunday and values can be entered
> as ranges or comma seperated values.
> As far as I can tell, what I've got should work.
>
> What have I done wrong?
>
> Cheers.
>
> Baz.
> --
> Barrie J. Bremner
>
> TheEnglishman [at] ecosse.net | OpenPGP public key ID: 5164F553
> http://www.geocities.com/thefatenglishman
> [Contact information available at website]
>
> "Linux? Is that some kind of MacOS?"
> -- BT technical support
> ---------------------------------------------------------------------
> Sheffield Linux User's Group - http://www.sheflug.co.uk
> To unsubscribe from this list send mail to
> - <sheflug-request [at] vuw.ac.nz> - with the word
> "unsubscribe" in the body of the message.
>
> GNU the choice of a complete generation.
>
>
>
---------------------------------------------------------------------
Sheffield Linux User's Group - http://www.sheflug.co.uk
To unsubscribe from this list send mail to
- <sheflug-request [at] vuw.ac.nz> - with the word
"unsubscribe" in the body of the message.
GNU the choice of a complete generation.