seekable stdin
Michael Gale
michael.gale at utilitran.com
Thu Dec 9 22:33:34 CET 2004
Crap ... you where right ... I was reading the Tcl seek man page ...
I would rather not use the Perl one as a file is executed for each piece
of mail ... so perl would constantly have to be started ... if it was a
daemon that would be ok ...
How would the C program you have work ? Would I just have to execute it
via the script ??
Michael.
Gyepi SAM wrote:
> On Thu, Dec 09, 2004 at 01:25:40PM -0700, Michael Gale wrote:
>
>>Hello,
>>
>> Thanks for the info .. could I just use the seek command in bash.
>>According to a `man seek`
>>
>>doing a `seek STDIN 0 start` should reset STDIN to the beginning for me
>>.. what do you think ?
>>
>>Do you see any problems ? Does any one see any problems ?
>
>
> Erm, I think you're reading the tcl seek man page.
> Definitely not bash, whatever else it may be.
>
> Certainly, if you feel more comfortable with tcl than perl, go ahead.
> One caveat, tcl cannot execute option specified commands, so you'll have
> to place the scriptlet in file and execute it. The other option is to
> pipe the command to its stdin, but that defeats the purpose, in this case.
> BTW, the tcl standard channel is 'stdin'.
>
> Also, thanks for sending an extra copy of your message to me personally, but I
> only need one, honest ;)
>
> -Gyepi
>
> _______________________________________________
> Bogofilter mailing list
> Bogofilter at bogofilter.org
> http://www.bogofilter.org/mailman/listinfo/bogofilter
--
Michael Gale
Lan Administrator
Utilitran Corp.
Linux: because a PC is a terrible thing to waste !!!
More information about the Bogofilter
mailing list