Todd Slater wrote:
On Thu, Sep 02, 2004 at 09:38:05AM +0200, Harald T ZIPKO wrote:

Manually it's possible to copy the text from the file via
~r /name/of/the/file.txt
But:
How do I force 'mail' in a shell script to send a file as attachment to [EMAIL PROTECTED]
(at the end of the week I would like to know quotas on a remote server)


(resending because I didn't see it come through--apologies for dupes)

Have it read the file using I/O redirect ( < and > )

mail -s subject [EMAIL PROTECTED] </name/of/file.txt


Or use

mutt -a file-to-attach

This will also work with binary files.

Avi

____________________________________________________
Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com
Join the Club : http://www.mandrakeclub.com
____________________________________________________

Reply via email to