20259a08 GG |
1 | #!/bin/bash -e |
2 | |
a94eb836 |
3 | # Send mail if /usr/bin/mail exists |
9a194185 |
4 | [ -x /usr/bin/mail ] || {echo "Your system does not have /usr/bin/mail. Install the mailx or mailutils package" ; exit 1} |
20259a08 GG |
5 | |
6 | input=$1 |
7 | shift |
8 | |
9 | /usr/bin/mail "$@" < $input |
10 | |