[aklug] Re: (ana)cron & Linux Counter update script

From: Jim Gribbin <jimgribbin@gmail.com>
Date: Sun Oct 31 2010 - 00:41:52 AKDT

OK. I think I figured out how to do this.

I put a 2 line scrip in /etc/cron-weekly that consists of:

#scrip to update this box on the linux counter project site weekly
sudo -Hu jimg /home/jimg/.linuxcounter/machine-update -m

at least it seems to work from the command line.

Not have really done any scripts from scratch, do I need the '#!/bin/bash' stuff?

Jim G

----- Original Message -----
From: "David J. Weller-Fahy" <dave-lists-aklug@weller-fahy.com>
To: aklug@aklug.org
Sent: Friday, October 29, 2010 6:59:08 PM
Subject: [aklug] Re: (ana)cron & Linux Counter update script

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

* Jim Gribbin <jimgribbin@gmail.com> [2010-10-28 23:18 -0500]:
> [snips]
>
> It does claim to have integrated some anacron features, but what I'm
> looking for doesn't seem to be one of then. The man pages say it does
> have an @daily feature, but also says if the clock is jumped forward
> it will skip the job for the day.
>
> Thanks, but I believe I'll pass on dcron.

Whoops! You're right - it only runs jobs missed by less than one hour,
anything greater is skipped completely... sorry for the red herring. ;)

- --
dave [ please don't CC me ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)

iEYEARECAAYFAkzLifwACgkQzahokXOb2UyYpQCgyIVw3Gu3V2CtQKH8tr0oZ5iA
5bAAn3+CtPHvlD/NhEzLmEugCzOX+OOI
=XftA
-----END PGP SIGNATURE-----
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.

---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Sun Oct 31 00:42:05 2010

This archive was generated by hypermail 2.1.8 : Sun Oct 31 2010 - 00:42:06 AKDT