|
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
|
Re: [PLUG] crontab won't work
|
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 07/05/2010 01:53 PM, Eric at Lucii.org wrote:
> 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
If you notice the default /etc/crontab contains the path of the commands as:
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts
- --report /etc/cron.daily )
I have found that cron does not follow the users path and only executes
internal bash or whatever /bin/sh points to internal commands.
- --
Rev. LeRoy D. Cressy mailto:leroy@lrcressy.com /\_/\
http://lrcressy.com ( o.o )
Phone: 215-535-4037 > ^ <
Cell: 267-307-3527
gpg fingerprint: 62DE 6CAB CEE1 B1B3 359A 81D8 3FEF E6DA 8501 AFEA
For info on enigmail: http://lrcressy.com/linux/mozilla.pdf
For info on gpg: http://www.gnupg.org/
Jesus saith unto him, I am the way, the truth, and the life:
no man cometh unto the Father, but by me. (John 14:6)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQEcBAEBAgAGBQJMMxVnAAoJEKuxGqN1iGbb1pkH/1E5nZrfYa0ilBgDYtLaW27E
wjTgrbZGUJjkUD63QVRn/f6+F358WyhAEixXl2hBR9YQROwTnmboEUZ6kuu4grNX
Lw2dYPqLPSRQsFBo2kahF3S/CqQBFw+EC+88PCSnPClicGMK/QcuSZzUQwOvqrDo
IZNICBsEQXX3P+9nbDv/2wFxp8qtVph3YexFkhKPKZ3gnRpCfyUSh3peiIaBp3C8
zYVdsY13bjZdB5Onan6vrEe0eM2Uzcd3akw5HUaUI9S57cd84Iu0E239Y47wZu+O
tJsQ8at6Sekh2VBM38Ra2p4dXoL/pHzsZaq0K+UY1zjjU4vQpAcQ3gQMAfNB5sM=
=3cT1
-----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
|
|