Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Bob Leever <bel1@osi.com>
Subject: shell scripts
Date: 1997/02/19	[thread overview]
Message-ID: <330B9F45.1A3F@osi.com> (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



                 reply	other threads:[~1997-02-19  5:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox