Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to capture stdout
Message
From
22/11/2006 16:41:29
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
22/11/2006 14:20:28
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01171891
Message ID:
01171935
Views:
16
>>I use API_APPRUN class to run pg_dump.exe file
>>
>>I need to show the messages from it after it finishes.
>>
>>How to capture standard output and redirect it to file ?

>
>How about?
>
>pg_dump.exe > log.txt
>
>then you inspect log.txt?

And in case we need to capture stderr as well, here's a neat trick I already forgot twice, and had to google it out again:

pg_dump.exe > log.txt 2>err.txt

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform