Re: Net_ping problems

From: Date: Wed, 16 Oct 2002 14:59:20 +0000
Subject: Re: Net_ping problems
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-2507@lists.php.net to get a copy of this message
you can add something like this to the top of your crontab SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root HOME=/ hope this helps, mike On Wednesday, October 16, 2002, at 08:06 AM, Simon H wrote:
Thanks for your help, but I'm not exactly sure what you mean. Could you provide an example. My crontab currently looks like: */15 * * * * /path/to/pinger.php with the top of pinger.php looking like: #!/usr/local/bin/php -q <?php ... Thanks again! Best Regards Simon H
-----Original Message----- From: Ondrej Jombik [mailto:nepto@pobox.sk] Sent: Tuesday, October 15, 2002 11:55 PM To: pear-general@lists.php.net Subject: Re: [PEAR] Net_ping problems
I'm using Net_Ping to monitor our customers ADSL connections,
running a script
in a crontab every 15 mins. The strange thing is the script runs
fine from the
commandline, but when run from crontab I get an email from
crontab telling me:
heh, there is actually somebody using it :)
Put appropriate PATH= directive into beginning of your crontab. I had similar problem on BSD-like system. It should work. =Nepto= ____________________________________________________________________________ Ondrej 'Nepto' Jombik, perl -le '$_=1;(1x$_)!~/^(11+)\1+$/&&print while$_++' -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
--PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- mike cullerton

« previous php.pear.general (#2507) next »