#188857 - 2008-07-23 11:33 AM
Re: how to catch the output of a script, which is executed under runnas?
[Re: xFrog]
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
In the sub-script that you call using RUNAS,
- Use RedirectOutput() to redirect to a new file - if the output file is already open for output in a parent script you won't be able to open it again.
- Make sure that you are in the correct folder. When you execute under RUNAS your context will change, and you may end up in (say) C:\Windows\System32 so use the KiXtart "GO" and "CD" command to ensure that you are in the right folder before you issue the RedirectOutput()
If you want to append to the same file you need to close the RedirectOutput() in the parent before calling the script then re-open it afterwards.
|
|
Top
|
|
|
|
how to catch the output of a script, which is executed under runnas?
|
xFrog
|
2008-07-23 10:03 AM
|
Re: how to catch the output of a script, which is executed under runnas?
|
Richard H.
|
2008-07-23 11:33 AM
|
Re: how to catch the output of a script, which is executed under runnas?
|
xFrog
|
2008-07-23 12:18 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
BradV
|
2008-07-23 12:31 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
Glenn Barnas
|
2008-07-23 01:29 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
xFrog
|
2008-07-23 03:19 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
Richard H.
|
2008-07-23 12:29 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
xFrog
|
2008-07-23 06:47 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
Glenn Barnas
|
2008-07-23 07:11 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
Richard H.
|
2008-07-24 09:54 AM
|
Re: how to catch the output of a script, which is executed under runnas?
|
Glenn Barnas
|
2008-07-24 03:15 PM
|
Re: how to catch the output of a script, which is executed under runnas?
|
xFrog
|
2008-07-24 09:51 AM
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|