Quote:
Originally posted by mixxalot
Sorry my Unix sysadmin skills are rusty. How would I configure my profile settings for db2inst1 to run the cron job scheduled script ?
Thanks!
Scott
|
You should have the db2 profile settings in the standard user profile, /home/db2inst1/.profile in your case. You could insert the following into your script
# check if db2 env. set
if [ "$DBINSTANCE" = "" ]; then
# not set; run profile
. /home/db2inst1/.profile
fi
Alternatively, there should be a db2profile script in the instance's home directory. You could run it instead.