ADSM-L

How to switch users in ADSM scheduled command

1997-12-09 19:39:47
Subject: How to switch users in ADSM scheduled command
From: Bill Mansfield <unixpro AT INTERACCESS DOT COM>
Date: Tue, 9 Dec 1997 18:39:47 -0600
Client is AIX 4.1.5, ADSM 2.1.0.6
Server is MVS ADSM 2.1.0.x

Trying to kick off a job that has to run as user Oracle.  Tried all
possible combinations of where to put the su command, best result is
that the scheduler doesn't hang (!) and get error code -32512 from the
shell.  Has anyone out there successfully used the command schedule
feature to run something as a user other than root, and if so, what's
the secret?

Last thing I tried was
in ADSM scheduler:    /usr/local/bin/testit.sh
in /usr/local/bin/testit.sh:    su - oracle "-c
/usr/local/bin/testit1.sh"
in /usr/local/bin/testit1.sh:    <<<the commands>>>
<Prev in Thread] Current Thread [Next in Thread>
  • How to switch users in ADSM scheduled command, Bill Mansfield <=