Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
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 examining the Monastery: (8)
As of 2014-07-11 05:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (219 votes), past polls