LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-20-2003, 10:16 AM   #1
ferrantepunto
Member
 
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Rep: Reputation: 15
Problems scheduling jobs with cron


Hi there,

I'm trying to automate a backup job made with taper using cron. I'm having a lot of trouble making it work.

I've read the NHF about scheduling, the man pages and I can't find the failing cause of the job.

I'm using Red Hat 8, and I've tried putting the command line in the /etc/crontab file, using the crontab -e to add the job to my user's crontab file, manually editing the files as root, but the job refuses to start.

Any ideas will be greatly appreciated.

One more question: If I put something like

10 10 * * * echo Hello!

Where can I expect the output? Terminal Window, a file? Where?

Thanks for your help.

Cheers.
 
Old 01-20-2003, 10:46 AM   #2
turnip
Member
 
Registered: Jul 2002
Posts: 143

Rep: Reputation: 15
That would end up getting mailed to root@localhost.
Usually cron mails stdout to root. to stop that you can do something like

echo "hello world" >> /dev/null 1>&2
 
Old 01-20-2003, 10:55 AM   #3
ferrantepunto
Member
 
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your reply.

I'm trying to check if there's any mail on the root account, but nothing. It is like the job is not running at all.

(I 'm using mail -u root, but it says that there is no mail for root).

Any more ideas?
 
Old 01-20-2003, 01:40 PM   #4
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Do you know if mail is working can you send mail to other users from that machine. Or is there an alias set for root in /etc/aliases
 
Old 01-24-2003, 03:14 AM   #5
ferrantepunto
Member
 
Registered: Apr 2002
Distribution: Mandrake - Red Hat - SuSE
Posts: 57

Original Poster
Rep: Reputation: 15
Hi there,

Yes, you were right. Sendmail was not installed on the system, and therefore, I was not able to send messages to users. I managed to install it and I tested it successfully.

Somehow, I managed to start cron jobs, but I think it is behaving erratically, because sometimes the jobs start and sometimes not (because sometimes I receive messages in the root account and sometimes not).

I'm using RedHat 8, is there any way to ensure that the jobs are running?

Cheers.
 
Old 01-24-2003, 07:05 AM   #6
KayJay
Member
 
Registered: Mar 2002
Location: dev/null
Distribution: redhat, mandrake
Posts: 218

Rep: Reputation: 30
plz post the cronjob and the output from root's mailbox here, so we can take a look @ it
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scheduling poweroff using cron akudewan Ubuntu 2 11-17-2005 04:00 AM
cron scheduling and time change dsschanze Linux - General 3 11-13-2005 04:22 PM
scheduling monthly job in cron from debian sarge 3.1 sridhar11 Debian 2 10-28-2005 09:03 AM
Scheduling jobs Netmaster0000 Linux - Newbie 3 12-13-2003 06:43 AM
CRON Jobs scottpioso Linux - Software 63 11-28-2003 06:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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