Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re: Invoking Perl script from an email

by stew (Scribe)
on Aug 02, 2002 at 11:32 UTC ( #187054=note: print w/ replies, xml ) Need Help??


in reply to Re: Invoking Perl script from an email
in thread Invoking Perl script from an email

I've created a basic .procmailrc file similar to this

:0: * ^From.*me * ^Subject:.*(run|file) { :0 c ! stew@my-server.com | perl /path/to/my/file.pl }

Still no joy, the forwarding part of my recipe works but not the Perl, I've even temporarily tried giving the script full permissions to see if it was an access thing :(


Comment on Re: Re: Invoking Perl script from an email
Download Code
Replies are listed 'Best First'.
Re: Invoking Perl script from an email
by Abigail-II (Bishop) on Aug 02, 2002 at 13:37 UTC
    Are you sure "perl" is in the PATH of the procmail process? It's not going to execute your shell.rc program.

    It's usually best to use the full path to perl in cases like this.

    Abigail

Re: Re: Re: Invoking Perl script from an email
by frankus (Priest) on Aug 02, 2002 at 12:52 UTC
    Don't you have to use back-ticks?
    Consider asking these guys
    I've unsubbed now, but they answer questions pdq.

    The quality of the response is as good as beginners@perl.com ;)

    HTH

    --

    Brother Frankus.

    ¤

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://187054]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (10)
As of 2015-07-07 23:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (93 votes), past polls