Sign in Join

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

Mailing lists / fpc-pascal / 2007-11

How to send stdout pipe to a process ?

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

TOUZEAU DAVID

Dear

I would like to send a TStringList.text to an external process (kind of stdout)

i have an external process that require to receive datas from stdin

like /home/process1 </tmp/data.txt

I would like my program to send datas inserted into a Tstringlist to this "process1"

I think i should use "Output" but don't know how ?

Do you think this should be answer ?? Is there a better way ?

For i:=0 to List.Count-1 do begin
    writeln(output;list.Strings[i]);
end;
David Touzeau -------------------------- Linux Ubuntu 7.04 feisty FreePascal-Lazarus,perl,delphi,php artica for postfix management console (http://www.artica.fr) icq:160018849