Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: call a script via an email

by frankus (Priest)
on Jun 13, 2002 at 14:18 UTC ( #174211=note: print w/ replies, xml ) Need Help??


in reply to call a script via an email

A little more detail is needed here:

  • Platform
  • MTA

You know all the petty stuff, we allow to distract us from the real problem ;)
I'd use procmail and formail on a debian box :
# Procmail recipe... lookaway. :0: * Sender:.*someone@example.com `formail -I"" |perl somescript.pl` # End of recipe.

# Cheesy Perl code fragment. while(<>){ chomp; next unless /^command:/; my $command = $'; next if $command =~ /(:?kill -9)|(?:halt)|(?:fsck)/; system( $command ); }

Something like that anyway.
More importantly look at PGP verification of sender,
we wouldn't want people spoofing emails to the address.

Alternatively try search cpan, category mail

--

Brother Frankus.

¤


Comment on Re: call a script via an email
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (20)
As of 2015-07-07 20:56 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