[ILUG] Cron(tab) Ca I add this?
Gavin Beatty
gavinbeatty at gmail.com
Tue Aug 7 16:22:03 IST 2007
On 06/08/07, Frank Murphy <frankly3d.weblists at gmail.com> wrote:
> crontab -e 23.15 * * * cp -u --remove-destination
> /home/Frank/.cxoffice.../hosts /etc/hosts
I have no idea what that's supposed to do. Is it: at 2315h every day,
cp blah? If so, it's wrong.
In any case, Wikipedia has a nice beginner friendly intro to crontabs.
http://en.wikipedia.org/wiki/Crontab
That should sort out crontabs for anyone needing to be in the know.
PS: It's always clever to add the full path to any bins used. I'd to
it even if /bin/cp looks anal and stupid ;) You can always have a:
PATH=/bin:/usr/bin:...
at the top of your crontab either, just to be sure as crontab doesn't
inherit the environment it starts in.
PPS:
--
www.mathsoc.com
More information about the ILUG
mailing list