How can I send a file through MAIL?

Iain "Niai" Davidson n8735053 at unicorn.cc.wwu.edu
Mon Nov 26 06:35:18 AEST 1990


hobbit at shum.UUCP (yoav gonen) writes:
>How can I send a file through MAIL?

Now let's see if I can do this off the top of my head...
(see uuencode and other man pages for further info)

$ uuencode file.txt file.txt | mail hobbit at shum.uucp

or a better way for a group of files in the current directory...

$ tar cf file.tar .
$ compress file.tar
$ uuencode filt.tar.Z file.tar.Z | mail hobbit at shum.uucp

and on the other end (after saving the mail message)

$ uudecode file.tar.Z.uue
$ uncompress file.tar.Z
$ tar xf file.tar 


I'm sure I'm going to get flamed if wrong... :-)

-- 
I.Davidson, A)BITS at wwu.edu B)uw-beaver!wwu.edu!IAIN C)n8735053 at unicorn.wwu.edu



More information about the Comp.unix.questions mailing list