Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-28-2004, 10:03 PM   #1
LQ Newbie
Registered: Jul 2004
Location: Malaysia
Distribution: RedHat EL AS3
Posts: 9

Rep: Reputation: 0
Crontab Issues


I have my crontab installed in my Linux machine by knowing with the command:

"Admin..>[/ ]rpm -q vixie-cron"
= vixie-cron-3.0.1-74

i also know that the cron service is running : Admin..>[/ ]/sbin/service crond status
crond (pid 5584) is running...

The issue was i didnt know whether the cronjob i entering works or not, in another word i didnt know the cron status.

Let me explain a bit more details here:-

Entering as a "Root"

1. create a cron job using : crontab -e
2. entering the following command for a simple testing & assume that could have something dsplay on the terminal
: 1 * * * * echo wake up from crontab

Do i miss out something or anything you would like to know about the system for more information, please do let me know,
will be much more appreciated if somebody could reply on this ASAP, Thanks a million..

Mike Chan
Old 11-28-2004, 10:30 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
The cron daemon isn't associated with the reminal. Better to echo something like the current time to a file and then check that.
Old 11-29-2004, 07:39 AM   #3
Registered: Jan 2003
Distribution: Gentoo
Posts: 65

Rep: Reputation: 15
Typically, any output from cronjobs will be sent to the crontab's owner via email. You can specify an alternate email by adding MAILTO=user to the beginning of your crontab.
Old 11-29-2004, 12:54 PM   #4
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
Re: Crontab Issues

Originally posted by mikeccs
1. create a cron job using : crontab -e
2. entering the following command for a simple testing & assume that could have something dsplay on the terminal
: 1 * * * * echo wake up from crontab
I don't use vixie, but if it is format-compatible to
other cron's I've used the colon at the beginning
of the line has got to be wrong, too :)

Old 11-29-2004, 09:09 PM   #5
Registered: Aug 2004
Distribution: debian, SuSE
Posts: 365

Rep: Reputation: 35
as above, anything that goes to the terminal is sent as mail

Check the logs in /var (system dependent) maybe in cron file or in messages.

cd /var/log
grep cron *


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
crontab Xris718 Linux - General 5 08-15-2005 01:03 PM
Crontab wormraper Debian 4 05-15-2005 01:01 AM
system-wide crontab in /etc/crontab ner Linux - General 2 11-18-2003 12:35 PM
HELP!! crontab karleong Linux - General 9 07-12-2003 10:54 AM
Where's my crontab? fxlee Linux - Newbie 2 01-30-2002 06:38 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:10 AM.

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