Re: cron jobs not running

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, 31 Jul 2011, Cliff Pratt wrote:

> To: CentOS mailing list <centos@xxxxxxxxxx>
> From: Cliff Pratt <enkiduonthenet@xxxxxxxxx>
> Subject: Re:  cron jobs not running
> 
> On Sun, Jul 31, 2011 at 3:31 PM, John R. Dennison <jrd@xxxxxxxxxxxx> wrote:
>> On Sun, Jul 31, 2011 at 03:19:01PM +1200, Cliff Pratt wrote:
>>>
>>> Tim, the program is run by cron in a different environment to the
>>> standard online environment. Is /bin/alldb a script? If so, *any*
>>> program in the script should have a full path, or the PATH enviroment
>>> variable should be specified in the cron. (see 'man cron').
>>
>> Only execs outside of /bin:/usr/bin need to be fully pathed; cron
>> exports a default PATH of /bin:/usr/bin.
>>
>> Please see "man crontab" for the explanation as to what is going wrong
>> here; look for '%' in the man page.
>>
> Ah! I never knew that! It's a good trap.

Greetings all!

Cliff - you might like to check out my customizable mysql 
database backup script (PHP5 CLI code) at:

http://forums.fedoraforum.org/showpost.php?p=1499959&postcount=3

Use at your own risk of course!

Kind Regards,

Keith Roberts

-----------------------------------------------------------------
Websites:
http://www.karsites.net
http://www.php-debuggers.net
http://www.raised-from-the-dead.org.uk

All email addresses are challenge-response protected with
TMDA [http://tmda.net]
-----------------------------------------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux