crontab & poller.php

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
User avatar
AuReUs ReCtoR
Posts: 3
Joined: Mon Sep 26, 2005 6:40 pm
Location: SCG/Belgrade/Vozdovac
Contact:

crontab & poller.php

Post by AuReUs ReCtoR »

i write in crontab:

Code: Select all

5  *  * * *     rector php /home/rector/public_html/graph/poller.php > /dev/null 2>&1
but don`t work? :-?

what is the problem? :cry:


tnx.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

On a RHEL 4 System my crontab reads:

Code: Select all

*/5 * * * *     cactiuser       php /var/www/html/cacti/poller.php > /var/www/html/cacti/log/poller.log 2>&1
(See the first few characters). Piping it to a file is for debugging purpose only.
Reinhard
User avatar
AuReUs ReCtoR
Posts: 3
Joined: Mon Sep 26, 2005 6:40 pm
Location: SCG/Belgrade/Vozdovac
Contact:

Post by AuReUs ReCtoR »

hmm...

in /etc/crontab i add line:

Code: Select all

*/5   *  * * *   rector php /home/rector/public_html/graph/poller.php > /home/rector/public_html/graph/log/poller.log
and still don`t work :(
[url=http://forum.aureus-rector.net][img]http://www.aureus-rector.net/draft/lionking.gif[/img][/url][url=http://forum.aureus-rector.net][img]http://www.aureus-rector.net/draft/lionking2.gif[/img][/url]
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Change php to the full path to php.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
AuReUs ReCtoR
Posts: 3
Joined: Mon Sep 26, 2005 6:40 pm
Location: SCG/Belgrade/Vozdovac
Contact:

Post by AuReUs ReCtoR »

work.

tnx.
[url=http://forum.aureus-rector.net][img]http://www.aureus-rector.net/draft/lionking.gif[/img][/url][url=http://forum.aureus-rector.net][img]http://www.aureus-rector.net/draft/lionking2.gif[/img][/url]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests