On Thursday, May 23, 2002, at 11:51 , lz wrote:

> Hi guys,
>
> sorry for the influx of messages. Here is what I have
> in my .forward file
> |/home/lz/perl/checkRelation.pl
phase one good - the .forward file seems correct

> Here is what in my perl file:
> #!/usr/bin/perl
> while(<STDIN>)
> {
>     open LOG ">/home/lz/perl/logfile" or die "Can't
> create logfile: $!";
>
> }

note that you might want to open the logfile before
going into the loop.

then you might want to DO something with the
open file handle -

also you might want to do something with the
stuff you are reading from STDIN before
you decide to just spam your logfile....

as jonathan has already noted - you will spawn
one instance of this code for all emails - hence
you will open up the site to a denial of service
attack.... by trying this trick.....

what you may wish to do is go back to square one,
and let the email pile up at the smtp host, and
have a single process go and read the email on an
arbitrary interval....


ciao
drieux

---


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to