![]() |
|
|
|
|
|||||||
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| cron job starts new cron proccess | ron76 | SUN Solaris | 3 | 05-11-2008 10:07 PM |
| Cron and Pseudo-Cron | dingusmcghee | UNIX for Dummies Questions & Answers | 1 | 01-31-2008 08:58 AM |
| CRON usage for CRON job | skyineyes | UNIX for Dummies Questions & Answers | 1 | 01-17-2008 06:17 AM |
| AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log | Keith Johnson | AIX | 0 | 01-09-2008 04:32 PM |
| Cron : you are not authorized to use cron. Sorry. | tt155 | UNIX for Advanced & Expert Users | 1 | 07-06-2005 07:37 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
cron job
Hi,
How to monitor whether a cron job is running or errored out..?other than checking the process using ps-aef how to enter the cron job which throws the output in 1 file and errors in other file. i remember it can be done using >1 and >2 ..but not sure.. any expert..please help!! |
| Forum Sponsor | ||
|
|
|
|||
|
The simplest way is to have the cron job itself signal to you somehow, perhaps by creating a file when starting and removing it when done. What's tougher is if there needs to be some mechanism to figure out whether it's really only just working and taking time, or hanging. Perhaps your best bet is to make it verbose enough that you can tell when it's not working simply by observing the lack of output.
Your second question seems to be about redirection; yes, you can redirect standard output using 1> and standard error using 2> like this: Code:
runjob 1>output 2>errors |
|||
| Google UNIX.COM |
| Thread Tools | |
| Display Modes | |
|
|