From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,8a0780be6582db3a,start X-Google-Attributes: gidfee84,public From: Bob Leever Subject: shell scripts Date: 1997/02/19 Message-ID: <330B9F45.1A3F@osi.com>#1/1 X-Deja-AN: 219988599 Content-Type: text/plain; charset=us-ascii Organization: OSI Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 X-Mailer: Mozilla 3.01Gold (X11; U; SunOS 5.4 sun4m) 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