Mailinglist Archive: opensuse (2271 mails)
| < Previous | Next > |
script at crontab
- From: "Agi Subagio" <agi.subagio@xxxxxxxxxxxxxxxxxx>
- Date: Thu, 8 Apr 2004 14:45:20 +0700
- Message-id: <034801c41d3d$71685510$cb01a8c0@agi>
I have SLES8 and Oracle DB 9iR2 in it.
I created a export script like this:
oracle@oracle:~> more bin/backup
file_name=export_`date +%d_%m_%Y_%H_%M`.dmp
exp kfc/oracle full='Y' file=$file_name
gzip -c9 $file_name >> $file_name.gz
rm -f $file_name
If I run this script with user oracle and bash shell, it run succesfully.
But if I put that script on user oracle's crontab, it won't work.
How to set environment in user oracle's crontab?
---
This email is protected by Clam AntiVirus and SpamAssassin
I created a export script like this:
oracle@oracle:~> more bin/backup
file_name=export_`date +%d_%m_%Y_%H_%M`.dmp
exp kfc/oracle full='Y' file=$file_name
gzip -c9 $file_name >> $file_name.gz
rm -f $file_name
If I run this script with user oracle and bash shell, it run succesfully.
But if I put that script on user oracle's crontab, it won't work.
How to set environment in user oracle's crontab?
---
This email is protected by Clam AntiVirus and SpamAssassin
| < Previous | Next > |