Problems using cron
Hi people,
I am installing mrtg, and now I am configuring it. I could run the cmd using cmd line, but when trying to do using cron (each 5 minutes) the command doesn't run and the debug file is becoming full with syntax /bin/sh file not found. How can I assure the error is there and is it possible reinstall cron using yum command? Thanks |
Quote:
You have been handed the correct command, but are not using it. You don't need to re-install cron...you need to give it the right command. Until you do, it won't work, period. See your other threads about this same issue. We can't keep explaining it further. The command you posted WILL NOT WORK from the command line when you type it in...it doesn't work on ANY of my systems, and won't work on yours either. AGAIN...READ the MRTG documentation....USE THE VERY CLEAR EXAMPLE CRON JOB IN IT. That's all you need to do. |
Which command?
It's the first time you're saying that. |
Quote:
You've been handed the command in ALL of your other mrtg threads, been pointed to it in the documentation multiple times by multiple users, and REFUSE TO UNDERSTAND IT. To put it as simply as we can, in the hopes that you will FINALLY get it through your skull:
|
Should I get some popcorn? :p
|
Be My guest.
TBone: I say Orange and You reply bananas. |
The mrtg.log isn't present, because the mrtg didn't run.
I guess the cmd I put in cron is w/ wrong syntax. I put: Export LANG=C /usr/bin/mrtg <path>/arq.cfg --logging /var/log/<log file> >> /tmp/debug.log 2>&1 |
Quote:
Quote:
AGAIN...you CANNOT put the export....crap in front of the command. AGAIN, you have to actually put a PATH to the cfg file. AGAIN, the MRTG documentation has a CLEAR EXAMPLE of what to do. |
Quote:
|
Yeah ... to be a success in Linux one has to pay attention. To pay attention to responses from OS and apps. To pay attention to what other people have done. Dig into details. People with attention disorders will have extreme difficulties.
|
Thanks Emerson,
Can you help me with this ? The mrtg was installed using yum, and I can run using command line, and even inserting the command in cron, it doesn't run, and the log says: invalid Syntax. Thanks |
Quote:
http://www.linuxquestions.org/questi...3/#post5574620 |
thomazp, you seem to be spreading your question among multiple threads which is discouraged here at LQ as it results in the issue being very difficult to track for other members. You also seem to have a habit of clicking "Report" instead of "Reply", which is likely causing some confusion on both sides. You may want to read http://www.linuxquestions.org/questi...#faq_lqwelcome. If you have any questions, don't hesitate to contact me.
--jeremy |
All times are GMT -5. The time now is 01:39 AM. |