tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: ekapvon () eka ! ericsson ! se (Par Von Zweigbergk)
To: tru64-unix-managers
Subject: Filtering mail through a perl script
Date: Mon, 07 Jul 1997 15:03:06 +0000	[thread overview]
Message-ID: <96078614710241.tru64-unix-managers.marc@archive.invalid> (raw)


Hi everybody,

I have a small problem .. in my aliases-file i have added=20

arsout:"|/tools/gnu/bin/perl /tmp/arsfilter.pl"

And now i want the perl-script arsfilter.pl to receive the mail sent to a=
rsout=20
as STDIN .
In the perl-script arsfilter.pl i've written :
=20
while(<STDIN>)
{
    $theinmail[$i] =3D $_;
    $i++;
}

but the script never seems to execute when i sen a mail with the command =
:

> mail arsout@somewhere.com < testmail

Have i done the right thing ?? and in that case what must i do to get my =
program=20
running.
The script works when i write :=20

> arsfilter < testmail

Regards ,

	P=E4r von Zweigbergk
	Ericsson Components AB=09

                 reply	other threads:[~1997-07-07 15:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox