Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#25 tracing and piping output to a file doesn't work

Windows
closed
None
5
2012-08-14
2008-07-21
Anonymous
No

I am trying o use the trace command by redirecting the output to a file from a DOS prompt. I have trace R or ALL in the initial rexx pgm that I want to trace.

I have a len.BAT file with:
REXX VDRMVSLoadTest bluehillzos 7363 1 10 LEN > 1.txt

to direct the trace output to a 1.txt file (I use this technique all the time with Quercus REXX). When I execute the BAT file I see the trace output flying by on the DOS screen but no trace output shows up in the file where it is useful to me.

If I remove the > 1.txt from the BAT file so the command is simply:

REXX VDRMVSLoadTest bluehillzos 7363 1 10 LEN

and from the dos prompt execute:

len.bat > 1.txt

I get the same result... no useful trace output in the 1.txt file.

I am running windows xp/pro on a Dell optiplex machine with an Intel 3.2 ghz processor.

Discussion

  • TheDavidFactor
    TheDavidFactor
    2008-07-21

    Logged In: YES
    user_id=1011368
    Originator: NO

    trace out doesn't go to standard out, which is what ">" redirects. It does to standard error which can be redirected by this "2>"

    For more information on redirection view this link: http://www.ss64.com/ntsyntax/redirection.html

    NOTE: this link does not represent an endorsement by the ooRexx team or SourceForge.

     


Anonymous


Cancel   Add attachments