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: OT Unix shell variable question

Re: OT Unix shell variable question

From: Lucy Lin <llin_at_versus.dmz.advance.net>
Date: Tue, 29 May 2001 13:05:27 -0700
Message-ID: <F001.003128FA.20010529123830@fatcity.com>

you can do like this:

PASSWORD=$1; export PASSWORD
$1 is the agument you can pass in on unix command line.

Lucy

On Tue, 29 May 2001 Scott.Shafer_at_dcpds.cpms.osd.mil wrote:

> I am trying to pass a shell variable into a "here document" in a unix shell
> script, i.e.,
>
> export PASSWORD=the_pass
>
> svrmgrl << EOF
> connect user/$PASS
> do_stuff_here;
> commit;
> exit
> EOF
>
> I have tried: "$PASS" , \$PASS , and just plain $PASS - no dice.
> Anyone know how to do this? I spent too many hours in the sun this past
> weekend and am drawing a blank...
>
> Thanks,
>
> Scott Shafer
> San Antonio, TX
> 210-581-6217
>
> "And no amount of training or preparedness can eliminate the almost
> certainty that in the middle of your Angry Crane stance, as you transition
> to your Combative Monkey to administer the Coup de Grāce via your Ninja
> Death Touch, you step on a beer bottle and fall backwards into the juke box
> and get your head stove in by a drunk with a pool cue." --Jay Trigg
>
>

-- 
Lucy Lin Oracle DBA

condenet.com 212-286-3852

--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Lucy Lin
  INET: llin_at_versus.dmz.advance.net

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue May 29 2001 - 15:05:27 CDT

Original text of this message

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