LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 05-21-2004, 09:31 AM   #1
ashley75
Member
 
Registered: Aug 2003
Posts: 231

Rep: Reputation: 30
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
 
Old 05-21-2004, 10:34 AM   #2
rose_bud4201
Member
 
Registered: Aug 2002
Location: St Louis, MO
Distribution: Xubuntu, RHEL, Solaris 10
Posts: 927

Rep: Reputation: 30
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
 
  


Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
cron job? dr_zayus69 Linux - Newbie 14 12-01-2004 06:16 PM
cron job working2hard Programming 6 07-28-2004 09:12 PM
Cron job rajasekarvr Linux - General 4 05-03-2004 05:35 PM
cron job errors existo Slackware 4 01-23-2004 02:40 PM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 02:30 PM


All times are GMT -5. The time now is 03:35 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration