[Malvern] Streaming "C" progs.

Colin Newell colin.newell at gmail.com
Tue Mar 21 17:06:50 GMT 2006


Yes, it is possible under any language.  If the program is outputting
to the console using a command like print, printf or writeline it will
be possible to use that output with pipes.

On 3/21/06, Geoff Bagley <geoff.bagley at btinternet.com> wrote:
> It was very remiss of me, but I meant when running Free Pascal !
> I am aware that it can be done under "C".
>
> It is possible that there may be the equivalent to the stdio header
> under Pascal,
> but I have never seen it.
>
> I have spent many years writing Pascal, and earlier near relations
> Algol60 and 68, and don't feel that
> it is worth my while learning "C", although I have often translated it
> into Pascal.
>
> Pascal is very well-structured, strongly typed, and can easily be
> object-oriented.
> The layout makes following the logic for debugging relatively easy.
>
> Geoff.
>
> Andy Dixon wrote:
>
> >
> > On 21 Mar 2006, at 12:50, Geoff Bagley wrote:
> >
> >> If "C" programmes contain the header stdio.h,  as I think most of
> >> them do, then can you just
> >> "pipe" the output of one to the next ?  E.g. :  ./prog1 | ./prog2  |
> >> etc.  ?
> >>
> >> Geoff.
> >>
> >
> > As long as the C program is sending output to STDOUT, you should be
> > fine.
> >
> > Andy
> >
> > _______________________________________________
> > Malvern mailing list
> > Malvern at mailman.lug.org.uk
> > http://mailman.lug.org.uk/mailman/listinfo/malvern
> >
>
>
> _______________________________________________
> Malvern mailing list
> Malvern at mailman.lug.org.uk
> http://mailman.lug.org.uk/mailman/listinfo/malvern
>



More information about the Malvern mailing list