Consultor Eletrônico



Kbase P276: How can I send all program output to a file using redirection?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   12/3/2008
Status: Verified

GOAL:

How to redirect output of an application within a client session?

GOAL:

How can I send all program output to a file using redirection?

FACT(s) (Environment):

Windows
Progress 8.x
Progress 9.x
OpenEdge 10.x

FIX:

To redirect an output of an application within a RUN statement, create a .bat file that includes the procedure and then run that procedure from the RUN statement.

An example as follows:

{D:\dlc\prowin32.exe -b -p C: \working\test.p > output.log}

Include the entire command within the .bat file and then run that file.

You can also create an icon on Windows to run the process and still use redirection if you specify the "Target" line in the shortcut as follows:

CMD.EXE /C _progres.exe -b -p SomeProgram.p >output.log