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: Unix question: how to display SID and path in prompt

RE: Unix question: how to display SID and path in prompt

From: April Wells <awells_at_csedge.com>
Date: Tue, 27 Aug 2002 08:08:22 -0800
Message-ID: <F001.004C058D.20020827080822@fatcity.com>


Eve rocks?

-----Original Message-----
[mailto:Scott.Shafer_at_dcpds.cpms.osd.mil] Sent: Tuesday, August 27, 2002 10:53 AM
To: Multiple recipients of list ORACLE-L

Obviously. If you had worked on VMS, why would you want to emulate it? <evil grin>

Scott Shafer
San Antonio, TX
210.581.6217

> -----Original Message-----
> From: Jared.Still_at_radisys.com [SMTP:Jared.Still_at_radisys.com]
> Sent: Monday, August 26, 2002 7:13 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Unix question: how to display SID and path in prompt
>
> Mladen,
>
> Your magnificent intuition and superior powers of reasoning
> have finally failed you.
>
> I've never touched VMS. ;)
>
> Jared
>
>
>
>
>
>
> "Gogala, Mladen" <MGogala_at_oxhp.com>
> Sent by: root_at_fatcity.com
> 08/26/2002 01:28 PM
> Please respond to ORACLE-L
>
>
> To: Multiple recipients of list ORACLE-L
> <ORACLE-L_at_fatcity.com>
> cc:
> Subject: RE: Unix question: how to display SID and path in
> prompt
>
>
> Jared, the "alias cd='go'" line immediately betrays you as a
> former VMS person. Next thing you know and your aliases will
> be like "set_def""
>
> > -----Original Message-----
> > From: Jared.Still_at_radisys.com [mailto:Jared.Still_at_radisys.com]
> > Sent: Monday, August 26, 2002 3:08 PM
> > To: Multiple recipients of list ORACLE-L
> > Subject: RE: Unix question: how to display SID and path in prompt
> >
> >
> > > Also be aware that when using backticks in your PS1
> > variable, you are
> > > influencing $? as a result.
> >
> > I don't find that to be true with pdksh - PD KSH v5.2.14 99/07/13.2
> >
> > function go {
> > \cd $1
> > typeset -Z2 _h; typeset -Z2 _m # 2
> > digits, zero padded
> > _hh="(SECONDS/3600)%24" _mm="(SECONDS/60)%60" # hours, minutes
> > _time='${_x[(_m=_mm)==(_h=_hh)]}$_h:$_m'
> > typeset bold=$(tput bold)
> > typeset shy=$(tput rmso)
> > PS1="[ `pwd` ]"
> > PS1=$PS1`echo
> > "\n\n${bold}$_time-${UMACHINE}:${ORACLE_SID}${shy}:${LOGNAME}-
> > $TTY > "`
> > # need to be able to turn xtitle off when using 'go'
> > if [ "$TERM" = "xterm2" -o "$TERM" = "xterm" ] ;then
> > # don't do xtitle if NO_CD_TITLE is set or in SCREEN
> > #[ "$NO_CD_TITLE" -o "$WINDOW" -ge 1 ] || xtitle
> > ${MACHINE}:${PWD}
> > :
> > fi
> > }
> >
> > alias cd='go '
> >
> > --------------------
> > 10:2-rsysdevdb:dv01:jkstill-3 > rm this_file_does_not_exist
> > rm: cannot remove `this_file_does_not_exist': No such file or
> > directory
> > [ /home/jkstill/tmp ]
> >
> > 10:2-rsysdevdb:dv01:jkstill-3 > echo $?
> > 1
> > [ /home/jkstill/tmp ]
> >
> > 10:2-rsysdevdb:dv01:jkstill-3 > echo $?
> > 0
> > [ /home/jkstill/tmp ]
> >
> > 10:2-rsysdevdb:dv01:jkstill-3 >
> >
> > Jared
> >
> >
> >
> >
> >
> > "Curiel, David" <david.curiel_at_pioneer.com>
> > Sent by: root_at_fatcity.com
> > 08/26/2002 08:23 AM
> > Please respond to ORACLE-L
> >
> >
> > To: Multiple recipients of list ORACLE-L
> > <ORACLE-L_at_fatcity.com>
> > cc:
> > Subject: RE: Unix question: how to display SID
> > and path in prompt
> >
> >
> >
> >
> > Also be aware that when using backticks in your PS1 variable, you are
> > influencing $? as a result.
> >
> > What happens, is that when you run a command (i.e. "rm
> > <some_file_that_doesnt_exist>") and then say "echo $?", you
> > are getting
> > the
> > return code ($?) of your PS1 execution (which is likely to
> > always be 0) -
> > NOT the $? of the "rm" command.
> >
> > David Curiel
> >
> >
> >
> >
> > --
> > Please see the official ORACLE-L FAQ: http://www.orafaq.com
> > --
> > Author:
> > INET: Jared.Still_at_radisys.com
> >
> > 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).
> >
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Gogala, Mladen
> INET: MGogala_at_oxhp.com
>
> 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).
>
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author:
> INET: Jared.Still_at_radisys.com
>
> 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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Scott.Shafer_at_dcpds.cpms.osd.mil

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).

begin 666 InterScan_Disclaimer.txt
M0U-502 R,# R.B @26UA9VEN92!T:&4_at_4&]S<VEB:6QI=&EE<R$-"D-O<G!O
M<F%T92!3>7-T96US($%N;G5A;"!5<V5R<R!!<W-O8VEA=&EO;B!#;VYF97)E
M;F-E#0I7:&5N.B!/8W1O8F5R(#(M-"P@,C P,@T*5VAE<F4Z($-A<FEB92!2
M;WEA;&4_at_4F5S;W)T(" @3W)L86YD;RP_at_1DP@(%5300T*1F]R(&UO<F4@:6YF
M;W)M871I;VX_at_9V\@=&\@=W=W+F-S961G92YC;VT-"@T*#0H-"E1H92!I;F9O
M<FUA=&EO;B!C;VYT86EN960@:6X@=&AI<R!E+6UA:6P@:7,@<W1R:6-T;'D@
M8V]N9FED96YT:6%L(&%N9"!F;W(@=&AE(&EN=&5N9&5D('5S92!O9B!T:&4@
M861D<F5S<V5E(&]N;'D[(&ET(&UA>2!A;'-O(&)E(&QE9V%L;'D@<')I=FEL
M96=E9"!A;F0O;W(@<')I8V4@<V5N<VET:79E+B @3F]T:6-E(&ES(&AE<F5B
M>2!G:79E;B!T:&%T(&%N>2!D:7-C;&]S=7)E+"!U<V4@;W(@8V]P>6EN9R!O
M9B!T:&4@:6YF;W)M871I;VX_at_8GD@86YY;VYE(&]T:&5R('1H86X@=&AE(&EN
M=&5N9&5D(')E8VEP:65N="!I<R!P<F]H:6)I=&5D(&%N9"!M87D_at_8F4@:6QL
M96=A;"X@($EF('EO=2!H879E(')E8V5I=F5D('1H:7,@;65S<V%G92!I;B!E
M<G)O<BP@<&QE87-E(&YO=&EF>2!T:&4@<V5N9&5R(&EM;65D:6%T96QY(&)Y
M(')E='5R;B!E+6UA:6PN"@I#;W)P;W)A=&4_at_4WES=&5M<RP_at_26YC+B!H87,@
M=&%K96X_at_979E<GD@<F5A<V]N86)L92!P<F5C875T:6]N('1O(&5N<W5R92!T
M:&%T(&%N>2!A='1A8VAM96YT('1O('1H:7,@92UM86EL(&AA<R!B965N('-W
M97!T(&9O<B!V:7)U<V5S+B @5V4_at_86-C97!T(&YO(&QI86)I;&ET>2!F;W(@
M86YY(&1A;6%G92!S=7-T86EN960_at_87,@82!R97-U;'0@;V8@<V]F='=A<F4@
M=FER=7-E<R!A;F0_at_861V:7-E('EO=2!C87)R>2!O=70@>6]U<B!O=VX@=FER
M=7,@8VAE8VMS(&)E9F]R92!O<&5N:6YG(&%N>2!A='1A8VAM96YT+@T*#0H-
#"@T*
end

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: April Wells
  INET: awells_at_csedge.com

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 Aug 27 2002 - 11:08:22 CDT

Original text of this message

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