* shell scripts
@ 1997-02-19 5:00 Bob Leever
0 siblings, 0 replies; only message in thread
From: Bob Leever @ 1997-02-19 5:00 UTC (permalink / raw)
Can anyone tell me why a command which runs perfectly well from the
command line will not run in a script?
The command is:
su - oracle -c "/dbms/oracle732/app/oracle/product/7.3.2/bin/dbshut"
the script looks like:
#! /bin/ksh -kv
# auto shut down RDBs
# assumes it has root priviledge to run
su - informix -c "/dbms/informix-7.2/bin/onmode -ky"
su - oracle -c "/dbms/oracle732/app/oracle/product/7.3.2/bin/dbshut"
su - sybase -c "/dbms/sybase-11/bin/do.shutdown &"
#
the oracle user's shell is kshell
the root user's shell [from which the script is to be run] is kshell.
There is a companion script [which doesn't run either] to bring the
RDBs back up after reboot. and yes, we have all three of these RDBS
on the system.
any help would be appreciated. please e-mail me if you have a solution.
thanks
bob leever
bel1@osi.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1997-02-19 5:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-19 5:00 shell scripts Bob Leever
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox