Re: How to start/stop a script at certain time?



David Bolt wrote:
#Min Hour D M W Program
00 9 1-5 * * /bin/whatever -start
00 17 1-5 * * /bin/whatever -stop

You have the 1-5 in the wrong place. These would only be run on the
first 5 days of the month

DOH!

' > /dev/null 2>&1'

&>/dev/null takes up less space and does the same.

Well, it takes up less amount of characters, but only if you have a LOT
of them will it take up the same space on your HD. :-D

And if you don't want it in your logs anymore, enter a '-' without the
quotes as the first character.

That only works for root. From man 5 crontab:

As it was a server, I asumed that it would be run as root anyway.
Also as user I have the following in my crontab:
-*/2 * * * * /home/houghi/bin/background > /dev/null 2>&1

Without the `-` I have it in /var/log/messages, with the `-` I don't, so
apparently the manpage is wrong.
And no, I am not interested in seeing afterwards whether the backgrounds
change when I am not there. If you want to know what wallpapers they
are:
http://thepiratebay.org/torrent/4078226/houghi__s_wallpapers

I am working on series 2 that are 1920x1200. There are some 15.000 of
them now.

houghi
--
You are about to enter another dimension, a dimension not only of
sight and sound but of mind. A journey into a wondrous land of
imagination. Next stop, Usenet!
.


Loading