[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to Email a Binary file from the command line




Mitch Blevins wrote:
> 
> In foo.debian-user, you wrote:
> > Hi all
> >
> > I am wondering if anyone knows how to send a binary (.tar.gz) file from
> > the command line?  I am trying to write a "batch" (Sorry my old DOS
> > stuff coming back) program that tars and gzipps up some directorys and
> > then emails them to me.  All this for the purpose of backing up my
> > config files.  I can get the script to tar up the directorys that I
> > want, and then gzip them, but i can't figure out how to email them.
> 
> You are looking for the mimeit command in the metamail package.
> 
> example:
> [prompt]$ cat mytar.tar.gz |mimeit application/x-gtar/ >"whoiwant@tosendto.com" "This is the subject of the mail"

Cool, it worked, I think.  When it gets to the other end i get several
messages all with attachments called "Part 1" "Part 2".  How do I get my
original file back again at the other side?  (Im in windows using
netscape if it makes a difference - if I can just find out what has been
done to it maybe I can get it back!)

Thank you so far


Reply to: