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. -----
    +-
    <...>