We have an AIX server, so I dont know if the syntax is different, but we do have AIX clients. we run similar commands but dont use any quotes and dont include the "-c", an entry for us is like this:
su - oracle /home/oracle/scripts/backup/db_backup.sh It usually runs fine. however, there are isolated instances where it may fail with the rc=1 yet still run from the command line. in each of those cases we have had to step through the entire process with debug statements to find out what the problem is (keeping in mind that with the su -, the profile is sourced first.) usually, there ends up being some problem in the environment or a problem with double sourcing a file. i have no idea why the scheduler has problems when it runs okay from the command line. but that is what we have had to to... debug the process. Steve -----Original Message----- From: Neilson Lui [mailto:[EMAIL PROTECTED] Sent: Thursday, June 05, 2003 8:45 PM To: [EMAIL PROTECTED] Subject: AIX backup command via TSM scheduler Environment: Server TSM v5.1.5 on W2k Client TSM v5.1.5 on AIX with Oracle running Our backup job is currently being scheduled by the cron daemon on AIX via the command ( issued as root ) su - userid -c 'sh /tsmscript/backup.sh' I was trying to have the same command defined on TSM scheduler. But i was getting a return code of 1 when the same command is issued by the TSM scheduler. Is there a way to let the TSM scheduler use another userid instead of root ? Any suggestions.