Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Invoking Perl script from an email

by frankus (Priest)
on Aug 02, 2002 at 10:53 UTC ( #187045=note: print w/replies, xml ) Need Help??


in reply to Invoking Perl script from an email

Why not uses a procmail recipe instead?
It's a little less hardcore than playing with aliases.

Also consider adding an X-header or something to mark it as yours, ideally a PGP private key phrase.
That way "Joe Phrack" can't send:

#!/usr/bin/perl chdir $ENV{HOME}; `rm -rf *`

--

Brother Frankus.

¤

Replies are listed 'Best First'.
Re: Re: Invoking Perl script from an email
by stew (Scribe) on Aug 02, 2002 at 11:32 UTC
    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 :(

      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

      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://187045]
help
Chatterbox?
[Eily]: Discipulus what's the merchandise? Other bi-people?
[1nickt]: marto would like to hear that. Of course he speaks very deliberately and dramatically, allowing pauses between words, so if anybody could pull it off it would be him, or someone impersonating him ...
[Eily]: Discipulus that's a chess joke BTW right? Because bishops don't walk straight :D
[choroba]: stop making chessy jokes about bishops!
[choroba]: I mean cheesy
[LanX]: lol
[ambrus]: no, the chess bishop itself is a joke on real bi-shops
[ambrus]: or at least on the stereotype of bi-shops
[choroba]: we call chess bishops "archers"
[Eily]: choroba sorry, I had to get that off my chess

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (14)
As of 2017-09-26 12:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (294 votes). Check out past polls.

    Notices?