[SATLUG] sending a mail message with nail using script
N. David Guarneri
dguarneri at satx.rr.com
Thu Sep 2 14:59:36 CDT 2004
I have this script:
tar cfvj $(date +%m%d).tar.bz2 files/
echo "archive for $(date +%m%d).tar.bz2 attached" > send_archive.txt
nail my_email at email.com -v -s "umod archive for $(date +%m%d).tar.bz2"
-a $(date +%m%d).tar.bz2 -q send_archive.txt
rm send_archive.txt
The problem is that it goes into interactive mode. I did a "man nail"
and could not find a non-interactive option, though it does mention it.
--
"I never Metacharacter I didn't like." -- Dougherty and Robbins, _Sed
and Awk_ 2nd Ed (1997).
More information about the Satlug
mailing list