LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   log cron job to capture errors if there are (https://www.linuxquestions.org/questions/linux-general-1/log-cron-job-to-capture-errors-if-there-are-184115/)

ashley75 05-21-2004 09:31 AM

log cron job to capture errors if there are
 
Hi all,

below is what I have in my cron job:

ORACLE_SID=TEST
export ORACLE_SID
SDEHOME=/home/sde/sdeexe83
export SDEHOME

sdeversion -o compress -i esri_sde_3 -u sde -p sde


my question is if you run the above command mannualy, you will know whether if it run successfully or not, another word, it will post the run on your screen.

My question is if I put this job into a cron job, how am I suppose to know if it's ran or not, is there any log file or something I can go by so I can check.

thanks

rose_bud4201 05-21-2004 10:34 AM

Perhaps you could redirect the output of your command to a text file; then, when you want to read the output, just read the file?

i.e. sdeversion -o compress -i esri_sde_3 -u sde -p sde >> output.txt


All times are GMT -5. The time now is 11:54 AM.