[fpc-pascal]Read STIN on FreeBSD

Si. si at chemicalterrorism.com
Thu Mar 8 23:22:18 CET 2001


Oops, sorry it was my testing that was at fault.  Should have been echo
"hello world" | ./freepascal-program.  no wonder it didnt work, hehe.

Thanks for all your help guys, thats another util written.  FreePascal is by
the far the best language for doing unix sysadm type stuff :)

> -----Original Message-----
> From: fpc-pascal-admin at deadlock.et.tudelft.nl
> [mailto:fpc-pascal-admin at deadlock.et.tudelft.nl]On Behalf Of Marco van
> de Voort
> Sent: 08 March 2001 21:33
> To: fpc-pascal at deadlock.et.tudelft.nl
> Subject: Re: [fpc-pascal]Read STIN on FreeBSD
>
>
> > so how would one do say echo "hello world" | freepascal-program
> >
> > Is that possible on FreeBSD ?
>
> Sure, no problem. The CGI's even function that way. E.g. :
>
> var c : Char;
>
> begin
>  While not EOF(input) DO
>   begin
>    read(c);
>    write(c);
>   end;
> end.
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>





More information about the fpc-pascal mailing list