LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 07-12-2016, 10:31 AM   #1
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Rep: Reputation: Disabled
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
 
Old 07-12-2016, 10:39 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,469

Rep: Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243
Quote:
Originally Posted by thomazp View Post
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?
STOP opening new threads. Your problem is NOT WITH CRON as you've been told in your other FOUR THREADS about getting mrtg to work.

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.
 
Old 07-12-2016, 11:00 AM   #3
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Which command?
It's the first time you're saying that.
 
Old 07-12-2016, 11:08 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,469

Rep: Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243
Quote:
Originally Posted by thomazp View Post
Which command? It's the first time you're saying that.
You're either a liar or you're stupid. There's no other explanation for you posting this.

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:
  • Go to the MRTG documentation. The link should be easy for you to find if you look at the MANY times you've been handed it in your MRTG threads. If that's too hard, try putting "how to install mrtg in linux" into Google, and click on the VERY FIRST LINK.
  • Scroll down to the VERY BOTTOM
  • Now, read the words on the screen. Pay attention to the part that says "if you live in Linux land".
  • The part in the box is the command.
  • Put in your paths, where the example says to.
 
1 members found this post helpful.
Old 07-12-2016, 11:43 AM   #5
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
Should I get some popcorn?
 
Old 07-12-2016, 11:44 AM   #6
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
Be My guest.
TBone: I say Orange and You reply bananas.

Last edited by thomazp; 07-12-2016 at 11:46 AM.
 
Old 07-12-2016, 01:07 PM   #7
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-12-2016, 01:09 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,469

Rep: Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243
Quote:
Originally Posted by thomazp View Post
Be My guest.
TBone: I say Orange and You reply bananas.
Sorry, have no idea what you're talking about, and it's doubtful you know either. If you honestly can't read ONE PAGE of simple instructions, or type in ONE COMMAND correctly, there is NOTHING, that ANYONE, ANYWHERE can do to help you. You're getting paid to do a job that apparently you're not qualified to do. Your only two choices are:
  1. Quit
  2. Learn
You're not learning, despite being given VERY clear instructions.
Quote:
Originally Posted by thomazp
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
You GUESS??? Despite being told about a dozen times, over five threads, that your syntax was completely wrong, and despite being HANDED and SPOON-FED the correct one from the documentation at least half a dozen times? And you GUESS???

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.

Last edited by TB0ne; 07-12-2016 at 01:13 PM.
 
Old 07-12-2016, 01:11 PM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,469

Rep: Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243
Quote:
Originally Posted by Emerson View Post
Should I get some popcorn?
Feel free...I'm done with this guy. Five threads open about installing MRTG...which only has one page of instructions with examples, and he STILL can't figure it out. The sad part? He's getting PAID by someone to do this.
 
Old 07-12-2016, 01:47 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 7,231

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 07-12-2016, 01:57 PM   #11
thomazp
Member
 
Registered: Dec 2015
Location: Brazil
Distribution: Ubuntu, Fedora
Posts: 161

Original Poster
Rep: Reputation: Disabled
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
 
Old 07-12-2016, 01:59 PM   #12
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 24,469

Rep: Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243Reputation: 7243
Quote:
Originally Posted by thomazp View Post
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
Good luck, Emerson...nothing anyone else has said about "you're not putting the right command in, do it like this..." has sunk in. See this post before wasting your breath:
http://www.linuxquestions.org/questi...3/#post5574620

Last edited by TB0ne; 07-12-2016 at 02:02 PM.
 
Old 07-12-2016, 02:18 PM   #13
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,553

Rep: Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030Reputation: 4030
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
 
3 members found this post helpful.
  


Closed Thread

Tags
cron, reinstall, yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Cron directories: /var/spool/cron/cron.GfqqGO Woodsman Slackware 4 05-11-2011 03:37 PM
cron.hourly cron.weekly cron.monthly and 0anacron. Are they necessary? glore2002 Debian 2 09-30-2009 09:57 PM
adding a perl script to cron.daily / cron.d to setup a cron job CrontabNewBIE Linux - Software 6 01-14-2008 09:16 AM
cron not working from crontab nor form /etc/cron/cron.d. What did SuSE change? JZL240I-U SUSE / openSUSE 11 01-04-2007 02:57 AM
Can any one plz explain why/what for cron.d, cron.daily, cron.weekly etc are there. mavinashbabu Linux - Newbie 4 09-21-2006 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration