Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!EU.net!main.Germany.EU.net!Germany.EU.net!Dortmund.Germany.EU.net!interface-business.de!usenet From: j@ida.interface-business.de (J Wunsch) Newsgroups: comp.unix.bsd.bsdi.misc,comp.unix.misc,comp.unix.shell Subject: Re: Problems with "Piping" Mail Input Date: 22 Apr 1997 09:40:49 GMT Organization: interface business GmbH, Dresden Lines: 30 Message-ID: <5ji131$5ev@innocence.interface-business.de> References: <336a6c8f.27955581@news.alt.net> Reply-To: joerg_wunsch@interface-business.de (Joerg Wunsch) NNTP-Posting-Host: ida.interface-business.de X-Newsreader: knews 0.9.6 X-Phone: +49-351-31809-14 X-Fax: +49-351-3361187 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6717 comp.unix.misc:28892 comp.unix.shell:44097 bogusckintz@noucealoha.com (Chris Kintz) wrote: > I'm trying to pipe all of my incoming mail into my mail filter, which > is named "nags_filter.pl". It's located in my /user/ckintz/filter.pl > directory. Now, my question is this... how do I make a .forward file > to pipe all of my mail to the filter to get processed? Since I have > to use perl5, I've been trying "|/user/ckintz/filter.pl/perl5 > nags_filter.pl" Did you really try it _with_ the quotes? This should work then, or maybe you gotta write it |"/user/ckintz/filter.pl/perl5 /user/ckintz/filter.pl/nags_filter.pl" Anyway, it's better to start your perl script with: #!/user/ckintz/filter.pl/perl5 in the very first line, make it executable (chmod +x nags_filter.pl), and use |/user/ckintz/filter.pl/nags_filter.pl in your .forward. This is called ``interpreted executable'', see execve(2). -- J"org Wunsch Unix support engineer joerg_wunsch@interface-business.de http://www.interface-business.de/~j