Mailinglist Archive: opensuse (2271 mails)

< Previous Next >
script at crontab
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


< Previous Next >
Follow Ups