Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to capture stdout
Message
De
22/11/2006 16:41:29
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
22/11/2006 14:20:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01171891
Message ID:
01171935
Vues:
17
>>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform