Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Unix question: how to display SID and path in prompt
> -----Original Message-----
> From: STEVE OLLIG [mailto:sollig_at_lifetouch.com]
> Sent: Tuesday, August 27, 2002 3:23 PM
> To: Multiple recipients of list ORACLE-L
> Subject: RE: Unix question: how to display SID and path in prompt
>
>
> but the syntax IS annoying and tedious at best. speaking as
> a *NIX bigot
> who landed a job with a fair share of legacy VMS work that
> needs doing.
>
> it really pisses me off when i type SHOW SYSTEM/FULL instead
> of ps -efl on
> my sun box ;)
Whine, whine!
If you don't want to abbreviate your typing with "SH SYS/F", follow this:
In your SYS$LOGIN:LOGIN.COM, add this line:
$ IF F$TYPE(PS).EQS."" THEN PS :== $SYS$LOGIN:PS.COM The "IF" will only define it if it hasn't already been defined. Then, from the command line, "CREATE SYS$LOGIN:PS.COM", and paste this in your terminal window:
$! ps.com $! $! Quickie for Unixy-types. $! $ ON WARNING THEN EXIT $ ON CONTROL_Y THEN EXIT $! $ args = F$EDIT(p1,"UPPER,COLLAPSE") $ parm = "" $ IF args.eqs."-EFL" THEN parm = "/FULL" $ SHOW SYSTEM'parm' $! $ EXIT
...then hit <CTRL-Z> to save it. No need to worry about an execution security bit on VMS for command procs.
If your LOGIN.COM is fully re-entrant (most aren't), you can simply @SYS$LOGIN:LOGIN.COM to get your "ps" command, just like ". ~/.profile" for Korn. Your best bet is to logout and back in.
Likewise, you can add the following quickies to your LOGIN.COM:
$ cat :== type $ cd :== set default $ grep :== search $ up :== set default [-] $ ls :== directory $ ll :==
Please only use these interactively. If your LOGIN.COM separates out modes of operation (e.g. "IF F$MODE().EQS."INTERACTIVE"), put these symbol refinitions in the INTERACTIVE area and not in BATCH or NETWORK.
If you'd like more help with your VMS environment, give me a holler directly and we'll get you some help.
Rich Jesse System/Database Administrator Rich.Jesse_at_qtiworld.com Quad/Tech International, Sussex, WI USA
-- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Jesse, Rich INET: Rich.Jesse_at_qtiworld.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 - 16:43:29 CDT
![]() |
![]() |