Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Staying in svrmgrl through a script.
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"
>Tom wrote:
>>
>> One of my colleagues has asked me if it is possible to write a script from
>> unix to start svrmgrl session and connect internal without exiting after
>> the script ends. I can't seeem to stop the program from exiting and
>> disconnecting from svrmgrl a soon as the script ends. I would like to stay
>> at the svrmgrl prompt. Is this possible?
>>
>> Thanks in advance,
>> Tom
Ge van Geldorp. Received on Thu Sep 23 1999 - 04:10:56 CDT
![]() |
![]() |