Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2005-07

ExecuteProcess

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Darius Blaszijk

I'm using ExecuteProcess to run a commandline application. This application returns information to stdout. I have tried to pipe this to a file, but unfortunately this does not work. I keep getting a message like: "error resolving case of '>'"
Is ExecuteProcess not capable of handling pipes, is there a workaround, or an alternative??

Darius Blaszijk

L505
to Darius Blaszijk: I'm using ExecuteProcess to run a commandline application. This application returns…

| I'm using ExecuteProcess to run a commandline application. This application | returns information to stdout. I have tried to pipe this to a file, but | unfortunately this does not work. I keep getting a message like: "error | resolving case of '>'"
| Is ExecuteProcess not capable of handling pipes, is there a workaround, or | an alternative??

Have you checked out AssignStream. It works well.. might be available on *nix only though.

Vincent Snijders
to Darius Blaszijk: I'm using ExecuteProcess to run a commandline application. This application returns…
Darius Blaszijk wrote 7 lines
I'm using ExecuteProcess to run a commandline application. This application returns information to stdout. I have tried to pipe this to a file, but unfortunately this does not work. I keep getting a message like: "error resolving case of '>'" Is ExecuteProcess not capable of handling pipes, is there a workaround, or an alternative??

The cross platform solution for fpc is using TProcess. Since it is asked so many times, there is even a wiki page about it: http://lazarus-ccr.sourceforge.net/kb/index.php/Executing_External_Programs

Vincent.