Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
Post support questions that directly relate to Linux/Unix operating systems.
Moderators: Developers , Moderators
AuReUs ReCtoR
Posts: 3 Joined: Mon Sep 26, 2005 6:40 pm
Location: SCG/Belgrade/Vozdovac
Contact:
Post
by AuReUs ReCtoR » Mon Sep 26, 2005 6:42 pm
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?
tnx.
gandalf
Developer
Posts: 22383 Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:
Post
by gandalf » Mon Sep 26, 2005 7:08 pm
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
AuReUs ReCtoR
Posts: 3 Joined: Mon Sep 26, 2005 6:40 pm
Location: SCG/Belgrade/Vozdovac
Contact:
Post
by AuReUs ReCtoR » Mon Sep 26, 2005 7:25 pm
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]
rony
Developer/Forum Admin
Posts: 6022 Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:
Post
by rony » Mon Sep 26, 2005 8:00 pm
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]
AuReUs ReCtoR
Posts: 3 Joined: Mon Sep 26, 2005 6:40 pm
Location: SCG/Belgrade/Vozdovac
Contact:
Post
by AuReUs ReCtoR » Tue Sep 27, 2005 11:00 am
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]
Users browsing this forum: No registered users and 2 guests