Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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:.* `formail -I"" |perl` # 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?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2015-11-27 01:13 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (711 votes), past polls