LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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


Reply
  Search this Thread
Old 04-16-2012, 10:15 AM   #16
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled

yes mate it is
 
Old 04-16-2012, 10:17 AM   #17
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Code:
[root@backuptest mondo]# service crond status
crond (pid  14639) is running...
[root@backuptest mondo]#
 
Old 04-16-2012, 10:29 AM   #18
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,420

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Check some last lines of /var/log/mondoarchive.log file, if it have some error reporting?

And as per my knowledge everything seems to be fine and the cronjobs should work accordingly. I don't understand why it is not running.
 
1 members found this post helpful.
Old 04-16-2012, 07:17 PM   #19
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Can I also suggest you add
Code:
... 1>/tmp/mondo.log 2>&1
to the end of each cron cmd to trap any info/errors.

Re mailx; on my system you can use mailx or mail and they are located
Code:
[root@localhost ~]# which mail
/bin/mail
[root@localhost ~]# which mailx
/bin/mailx
 
1 members found this post helpful.
Old 04-17-2012, 03:30 AM   #20
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi chaps

Thanks for the replies.....I have checked the /var/log/mondoarchive.log but there is nothing in there so I did was Chris said to do and added a trap to the cron job. This was the output of the log:

Code:
[root@backuptest tmp]# cat mondo.log
/bin/sh: mondoarchive: command not found
So it appears that the shell cannot find the command mondoarchive - I can see why as it can find it when you run the job manually :s
Do any of you guys know how I could now rectify this? The executable for mondo is located in usr/sbin.....

The cronjob i used was:

Code:
[root@backuptest tmp]# crontab -l
22 09 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo" 1>/tmp/mondo.log 2>&1
I shall try it with the script too and see what the output of that is....

Many thanks

Dave
 
Old 04-17-2012, 05:17 AM   #21
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Guys

I tried the script and could see that the job is now running in cron!!!

Not sure why it didnt before but the main thing is that it is now!

Thanks so much for the help guys I will be sure to recommend you and try and up your rep...

Best regards

Dave
 
Old 07-06-2012, 08:58 AM   #22
nuronce
LQ Newbie
 
Registered: Jul 2012
Posts: 1

Rep: Reputation: Disabled
oops

Last edited by nuronce; 07-06-2012 at 08:59 AM.
 
Old 07-06-2012, 10:42 AM   #23
davemac2626
Member
 
Registered: Mar 2012
Posts: 33

Original Poster
Rep: Reputation: Disabled
Hi

Sorry I thought I replied to this thread to say that it was working! The issue was that it was running in the background and not printing to screen! :s

So thanks all who replied it DOES work I just had to wait until the Mondo process had finished to see the iso had been comlpleted

My crontab looked like this:

Quote:
59 23 * * * /home/mondo/backup.sh 1>/tmp/mondo.log 2>&1
I also wrote a script and made it executable:

/home/mondo/backup.sh:

Quote:
#!/bin/sh
PATH=/usr/sbin:/usr/bin:/sbin:/bin
/usr/sbin/mondoarchive -Oi -d /home/mondo -E "/home/mondo"
Many thanks to all who contributed...

Dave
 
Old 07-09-2012, 08:05 PM   #24
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Code:
52 15 * * * /home/mondo/backup.sh
54 15 * * * mondoarchive -Oi -d /home/mondo -E "/home/mondo"
56 15 * * * /usr/sbin/mondoarchive -Oi -d /home/mondo -E "/home/mondo"
why run 3 copies almost simultaneously.???

Just take one eg the last and
Code:
56 15 * * * /usr/sbin/mondoarchive -Oi -d /home/mondo -E "/home/mondo" >/tmp/mondo.log 2>&1
and check the output file when it finishes.
Make sure that runs in root crontab.

Also check the local mail using 'mail' as you don't have mailx (unusual) as root.
 
  


Reply



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
Cron Job is not running akshathajagadish Linux - Newbie 2 10-15-2009 07:21 PM
Running a Cron Job landysaccount Linux - Newbie 6 02-04-2009 05:29 PM
cron job not running vincebs Linux - Software 34 10-30-2004 01:27 PM
Cron job not running? james_cwy Linux - Newbie 6 12-14-2003 08:24 PM
Cron Job Not Running pzorn Linux - General 4 10-02-2003 01:38 PM

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

All times are GMT -5. The time now is 11:14 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