I am trying to get a command to run every 5 minutes. It is for a Bandwidth Monitor, MRTG.
If I run the command, /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg The files in the mrtg dir are updated.
The website with instructions said to add a line to /etc/crontab. The first line I tried was 0-59/5 * * * * root /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg
That didn't work so I changed it to 0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg
Still no dice. I just need to make this command /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg run every 5 minutes.
Please help!
Thanks,
Matt Wray
MCSE, MCSA, MCP, CCNA
If I run the command, /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg The files in the mrtg dir are updated.
The website with instructions said to add a line to /etc/crontab. The first line I tried was 0-59/5 * * * * root /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg
That didn't work so I changed it to 0,5,10,15,20,25,30,35,40,45,50,55 * * * * root /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg
Still no dice. I just need to make this command /usr/local/mrtg-2.9.2/bin/mrtg /home/httpd/mrtg/mrtg.cfg run every 5 minutes.
Please help!
Thanks,
Matt Wray
MCSE, MCSA, MCP, CCNA