Re: Net_ping problems
| From: | mike cullerton | 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-- mike cullerton-----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--PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.phprunning a scriptI'm using Net_Ping to monitor our customers ADSL connections,fine from thein a crontab every 15 mins. The strange thing is the script runscrontab telling me:commandline, but when run from crontab I get an email fromheh, 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