Página 1 de 1
How to redirect standard output from a running ap
Publicado: Mié Jul 28, 2010 9:56 pm
por Guest
If you are writing an interface to a command-line debugger, which
doesn't have any redirect-to-a-file option, how would you do it?
The debugger is run from within Xailer, and there are several output
windows, one for the stack of called routines, one for variables,
another for maybe an xml tree diagram of the session so far.
On the console level, each of the above output goes to STDOUT or STDERR.
So, each time that the STEP button is pressed, thereby executing a STEP
on the command line, and then e.g. a CALL STACK button or VARS command
is executed, how do you intercept STDOUT, and redirect it to one of the
windows in the Xailer form?
How to redirect standard output from a running ap
Publicado: Sab Jul 31, 2010 1:27 pm
por ignacio
DC,
Sorry but I am not sure on what you need. BTW, to catch up the stdout the
easiest way to do it is to send it to a file and then open that file. I hope
it helps.
Regards,
"DC" <
NoSpamPlease@nycap.rr.com> escribió en el mensaje de
noticias:[email=4c508b81@svctag-j7w3v3j....]4c508b81@svctag-j7w3v3j....[/email]
> If you are writing an interface to a command-line debugger, which doesn't
> have any redirect-to-a-file option, how would you do it?
>
>
> The debugger is run from within Xailer, and there are several output
> windows, one for the stack of called routines, one for variables, another
> for maybe an xml tree diagram of the session so far.
>
> On the console level, each of the above output goes to STDOUT or STDERR.
>
> So, each time that the STEP button is pressed, thereby executing a STEP on
> the command line, and then e.g. a CALL STACK button or VARS command is
> executed, how do you intercept STDOUT, and redirect it to one of the
> windows in the Xailer form?
>
>
>
How to redirect standard output from a running ap
Publicado: Sab Jul 31, 2010 11:08 pm
por Guest
>>Sorry but I am not sure on what you need. BTW, to catch up the stdout
the easiest way to do it is to send it to a file and then open that
file. I hope it helps. <<
Ignacio,
Actually, I deleted the post, after figuring out how to do it. WScript
works fine, for this purpose. E.g.,
oShell := CreateObject("WScript.Shell")
oWshScriptExec = oShell:Exec(sCommandLine)
oStdIn = oWshScriptExec:StdIn
oStdErr = oWshScriptExec:StdErr
oStdOut = oWshScriptExec:StdOut
sLine := oStdErr:ReadLine()
Regards,
DC
How to redirect standard output from a running ap
Publicado: Mar Ago 03, 2010 10:57 am
por ignacio
Childers escribió el sáb, 31 julio 2010 23:08>> WScript works fine, for this purpose. E.g.,
DC
Childers,
Glad you solved.
Regards,