Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: su - oracle -c "script"

Re: su - oracle -c "script"

From: Jared Still <jkstill_at_gmail.com>
Date: Thu, 11 Aug 2005 15:05:23 -0700
Message-ID: <bf463805081115056bfebfac@mail.gmail.com>


Try putting it in quotes:

su - oracle -c '/apps/oracle/product/9.2/bin /sqlplus /nolog @/apps/oracle/select_user.sql'

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

On 8/11/05, Joe Smith <joe_dba_at_hotmail.com> wrote:
>
> I am trying to run this cmd as root from a shell script:
>
> su - oracle -c /apps/oracle/product/9.2/bin/sqlplus /nolog
> @/apps/oracle/select_user.sql
>

--
http://www.freelists.org/webpage/oracle-l
Received on Thu Aug 11 2005 - 17:07:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US