Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - Tru64 Unix
cancel
Showing results for 
Search instead for 
Did you mean: 

export backup is not working in crontab

akhilesh kumar_1
Occasional Contributor

export backup is not working in crontab

hello

when i run script manually it start backup but in crontab it is running some time and some times it is not running.
get script as attachment

my entry in crontab is

00 21 * * * sh /exp_bkp/expdp.sh >/exp_bkp/output.log
3 REPLIES
Steven Schweda
Honored Contributor

Re: export backup is not working in crontab

> [...] it is running some time and some
> times it is not running.

"not running" is not a useful problem
description. Is "cron" not running the job,
or is the job getting run but not working?

With my weak psychic powers, I can't see
what's in "/exp_bkp/output.log". Have you
looked at it? You might also save the error
output:

2>/exp_bkp/error.log
akhilesh kumar_1
Occasional Contributor

Re: export backup is not working in crontab

backup is not taking continuously at time it miss some days & i have to run expdp.sh script manually on that day.

there is not any output in /exp_bkp/output.log

file
LDI_Keppel
Occasional Contributor

Re: export backup is not working in crontab

Add the whole path of the sh command to your crontab line. Cron don`t know the PATH variable.