-
Hi,
I have a script which is used to take export backup of one table ,
it is working when I execute at command prompt
$./bkup.ksh
but when I put in crontab, it is not running.so I am checking
error in mail that it is not able to find exp.
below is my shell script.
My Backup script is bkup.ksh
$more bkup.ksh
#!/bin/ksh
cd /export/home/ibbusr1
dumpfile=rbswrd1-`date '+%d%m%Y'`.dmp
logfile=rbswrd1-`date '+%d%m%Y'`.log
exp ibba/password@rbswrd1 file=/export/home/ibbusr1/$dumpfile tables='credit_limit' log=/export/home/ibbusr1/$logfile
My cronjob entry is
$cronjob -l
0,10,20,30,40,50 * * * * /export/home/ibbusr1/bkup.ksh
In my mail
$mail
Your "cron" job on ccdev3
/export/home/ibbusr1/bkup.ksh
produced the following output:
/export/home/ibbusr1/bkup.ksh[7]: exp: not found
Thanks in advance.
Paresh.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|