Eric at Lucii.org on 5 Jul 2010 10:53:28 -0700 |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Is this root's cron? Allegedly, some cron programs allow a username for the process to be run as. I've never seen it work but it still appears in some documentation. Suggest you remove it and try again. Eric On 07/05/2010 01:25 PM, Edmond Rodriguez wrote: > Why is the word "root" in there? > > > > > ----- Original Message ---- >> From: Casey Bralla <MailList@nerdworld.org> >> To: PLUG Philadelphia Linux Users Group <PLUG@lists.phillylinux.org> >> Sent: Mon, July 5, 2010 12:46:00 PM >> Subject: [PLUG] crontab won't work >> >> I installed Debian stable on an old system I had lying around to be used as an >> > rsync backup server. > > My backup routine is called as a cron job fron >> /etc/crontab. Oddly, none of > the things I've entered into crontab >> execute. I can execute the scripts fine > outside of crontab, but >> nothing seems to work from within it. > > For example, I added this line to >> test if it was working: > > 26 12 * * * root mkdir >> /test1 > > This should have created a new directory at 12:26 PM. it >> didn't. > > Checking syslog, I see this weird message: > > Jul 5 >> 12:17:03 Backup /USR/SBIN/CRON[7125]: (root) CMD ( cd / && >> run-parts > --report /etc/cron.hourly) > Jul 5 12:24:01 Backup >> /usr/sbin/cron[3363]: (*system*) RELOAD (/etc/crontab) > Jul 5 12:25:01 >> Backup /usr/sbin/cron[3363]: (*system*) RELOAD (/etc/crontab) > Jul 5 >> 12:26:01 Backup /usr/sbin/cron[3363]: (*system*) RELOAD >> (/etc/crontab) > > > > > Anybody have any ideas what this >> means? > > > > > BTW, here is my complete /etc/crontab > > # >> /etc/crontab: system-wide crontab > # Unlike any other crontab you don't have >> to run the `crontab' > # command to install the new version when you edit this >> file > # and files in /etc/cron.d. These files also have username fields, > # >> that none of the other crontabs >> do. > > SHELL=/bin/sh > PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin > > # >> m h dom mon dow user command > 17 * * * * root >> cd / && run-parts --report /etc/cron.hourly > 25 6 >> * * * root test -x /usr/sbin/anacron || ( cd / && >> run-parts -- > report /etc/cron.daily ) > 47 6 * * 7 >> root test -x /usr/sbin/anacron || ( cd / && run-parts >> -- > report /etc/cron.weekly ) > 52 6 1 * * root >> test -x /usr/sbin/anacron || ( cd / && run-parts -- > report >> /etc/cron.monthly ) > # > > > > # Run the backup routine every night at >> 12:01 AM > 01 00 * * * root >> /etc/rsync/BackupDisks.py > > > > > 26 12 * * * root >> mkdir /test1 > > > > > > > - -- # Eric Lucas # # "Oh, I have slipped the surly bond of earth # And danced the skies on laughter-silvered wings... # -- John Gillespie Magee Jr -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwyG/MACgkQ2sGpvXQrZ/79DgCfS5LJDDBzIMQU5F+a+OqJDv7Z yqYAoNj38mgWKxZ2OjVsxFfwXlNJyMa0 =9Z8x -----END PGP SIGNATURE----- ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|