[SATLUG] Re: sending a mail message with nail using script

N. David Guarneri dguarneri at satx.rr.com
Thu Sep 2 15:05:05 CDT 2004


Figured it out.  I have to type << EOF at the end of the line.  Who
knew?

On Thu, 2004-09-02 at 13:59, N. David Guarneri wrote:
> 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