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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Staying in svrmgrl through a script.

Re: Staying in svrmgrl through a script.

From: TAP <tray_at_voicenet.com>
Date: 23 Sep 1999 13:47:54 GMT
Message-ID: <01bf05ca$2f1e22a0$03cf34aa@TRAY>


Thanks for all the help...It works!

Tom

Kenneth C Stahl <BlueSax_at_Unforgettable.com> wrote in article <37EA1F97.E984A668_at_Unforgettable.com>... Ge van Geldorp wrote:
>
> In article <37E915C9.BDDA14A9_at_Unforgettable.com>
BlueSax_at_Unforgettable.com writes:
> >I don't know if this is exactly what you are looking for, but try a
script
> >like this while logged in as oracle:
> >
> >#!/bin/ksh
> >svrmgrl command="connect internal"
> >exit 0;
> >
> >However, the shell script will not exit until after you exit from
svrmgrl,
> >so that may not be what you want.
>
> Easily fixed:
>
> #!/bin/ksh
> exec svrmgrl command="connect internal"

Duh!!! For as many kshell scripts that I've written I should have thought of that. Good fix!!! Received on Thu Sep 23 1999 - 08:47:54 CDT

Original text of this message

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