Return to BSD News archive
Newsgroups: comp.unix.bsd.bsdi.misc,comp.unix.misc,comp.unix.shell Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!worldnet.att.net!news.maxwell.syr.edu!stdio!iglou!go_spam_yourself From: go_spam_yourself@iglou1.iglou.com (Bill Marcum) Subject: Re: Problems with "Piping" Mail Input X-Nntp-Posting-Host: iglou1 X-Nntp-Posting-User: bmarcum Message-ID: <E908AL.GKo@iglou.com> Sender: news@iglou.com (News) Organization: IgLou Internet Services (1-800-436-4456) X-Newsreader: slrn (0.9.3.2 UNIX) References: <336a6c8f.27955581@news.alt.net> Date: Mon, 21 Apr 1997 20:15:57 GMT Lines: 54 Xref: euryale.cc.adfa.oz.au comp.unix.bsd.bsdi.misc:6706 comp.unix.misc:28868 comp.unix.shell:44067 In article <336a6c8f.27955581@news.alt.net>, Chris Kintz wrote: >I don't know much about Unix, so I figure I would go to those who are >Unix Gods for help... > >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" (Using the "|" key, basically the "Shift-\" that is >above the ENTER key on the PC keyboard). Using edit/pico doesn't seem >to work, as it'll either send the mail off into oblivion, or create a >file called "perl5.nags_filter.pl" in the filter.pl subdirectory and >put all the mail in there. > You are using the correct pipe symbol, your problem is what follows it should be nothing but a valid file name, probably "|/user/ckintz/filter.pl/nags_filter.pl" To tell the system to use perl5, the first line of nags_filter.pl should be: #!/usr/local/bin/perl5 (assuming that perl5 is located in the /usr/local/bin directory on your system). nags_filter.pl should also have execute permission, of course. >I tried to create a file using "cat >.forward" and then typing >(Control-D) to get a "pipe" symbol, but it seems to cancel it. Using >"|/user/ckintz/filter.pl/perl5 nags_filter.pl" with "cat >.forward" >caused the effects I describe above. > >Help! > >Log on into the shell indicates that the version of Unix installed is: >BSDI BSD/OS 2.1 Kernel #0: Tue Feb 25 15:16:04 HST 1997 > >Thanks. > > >- Chris > >(UIN 726529) ("Xoxotl" in online games) > >--- >"Sanity calms, but madness is more interesting." > > --John Russell >--- >E m a i l - c k i n t z - @at@ - a l o h a - .dot. - c o m /// I h a t e s p a m ! -- Bill Marcum bmarcum at iglou dot com If gnus are outlawed, only outlaws will have gnus.