Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Sanity check: Tiny wrapper script for /bin/mail

by aitap (Curate)
on Dec 01, 2013 at 20:32 UTC ( [id://1065180]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $ cat if-mail.pl 
    #!/usr/bin/perl
    exit 0 unless (my @lines = <STDIN>);
    ...
    $ ./if-mail.pl root@localhost -s "try running echo *"
    TEST
    ^D
    
  2. or download this
    $ mail
           From: Krylov Ivan <aitap@tarkus>
    ...
    
    ------ This is a copy of the message, including all the headers. -----
    +-
    <...>
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (10)
As of 2024-04-18 14:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found