LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Crontab Issues (https://www.linuxquestions.org/questions/linux-newbie-8/crontab-issues-260356/)

mikeccs 11-28-2004 10:03 PM

Crontab Issues
 
Hi,

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

btmiller 11-28-2004 10:30 PM

The cron daemon isn't associated with the reminal. Better to echo something like the current time to a file and then check that.

gunter 11-29-2004 07:39 AM

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.

Tinkster 11-29-2004 12:54 PM

Re: Crontab Issues
 
Quote:

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 :)


Cheers,
Tink

amfoster 11-29-2004 09:09 PM

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 *


All times are GMT -5. The time now is 02:55 AM.