New crontab not running

Matthew Seaman m.seaman at infracaninophile.co.uk
Sat Dec 23 19:38:26 GMT 2006


This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6DEC034182238E85F1D447F8
Content-Type: text/plain; charset=ISO-8859-15
Content-Transfer-Encoding: quoted-printable

Mark Ovens wrote:

> I added a new cron several days ago - using ``crontab -e'' - to run
> portsnap every night at 3am but it has never run and I can't work out w=
hy.
>=20
> /etc{148}# crontab -l
> # Update ports tree
> 0 3 * * * root /usr/sbin/portsnap cron
            ^^^^

That's the problem.  You don't need the username in that sort of crontab,=

and unless you've got an executable called root, that isn't going to do
anything.

It's only the crontab in /etc/crontab that has a username per line.  The =

crontabs from /var/cron/tabs already belong to particular users, so don't=

need that information inside them as well.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.                       7 Priory Courtyard
                                                      Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey         Ramsgate
                                                      Kent, CT11 9PW


--------------enig6DEC034182238E85F1D447F8
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.1 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFjYW48Mjk52CukIwRCME+AJ0c202Ad+vW/1Kl8JvEdi+b4hd7kACfTS84
qW4vWlzXw31Jke5U2nj/McU=
=Z973
-----END PGP SIGNATURE-----

--------------enig6DEC034182238E85F1D447F8--




More information about the Ukfreebsd mailing list