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

1999-03-30 Thread Peter S Galbraith

Wojciech Zabolotny wrote:

 On Fri, 26 Mar 1999, Jeff Katcher wrote:
  
  I am wondering if anyone knows how to send a binary (.tar.gz) file from
  the command line?
 
 What about such a simple command:
 mpack -s Subject of the message filename recipient_address

Someone at work needed that last year, and I suggested mpack.
She came back saying she couldn't pack two files together!
I eneded up hacking a perl script wrapper to mhn description
lines.

-- 
Peter Galbraith, research scientist  [EMAIL PROTECTED]
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
6623'rd GNU/Linux user at the Counter - http://counter.li.org/ 


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

1999-03-28 Thread Wojciech Zabolotny
On Fri, 26 Mar 1999, Jeff Katcher wrote:
 Hi all
 
 I am wondering if anyone knows how to send a binary (.tar.gz) file from
 the command line?

What about such a simple command:
mpack -s Subject of the message filename recipient_address

Additionally you may use the -m option to split the big binary
file in the smaller chunks.
It works for me very good.
The mpack utility is available in the mpack package in the mail section.

Hope this helps
Wojtek Zabolotny
[EMAIL PROTECTED]


How to Email a Binary file from the command line

1999-03-26 Thread Jeff Katcher
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.

My system:

P-166
64M RAM
1G HD
Debian Slink
Smail (I think - it is the default MTA that comes with Hamm)

Thanks in advance

Jeff


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

1999-03-26 Thread Mitch Blevins
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 [EMAIL PROTECTED] This 
is the subject of the mail

-Mitch


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

1999-03-26 Thread Will Lowe
 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

how 'bout:

mail [EMAIL PROTECTED]  foo.tar.gz

Will

--
| [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED]   |
|   http://www.cis.udel.edu/~lowe/   |
|PGP Public Key:  http://www.cis.udel.edu/~lowe/index.html#pgpkey|
--
|   You think you're so smart,  but I've seen you naked  |
|  and I'll prob'ly see you naked again ...  |
| --The Barenaked Ladies,  Blame It On Me  |
--


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

1999-03-26 Thread Brian Servis
*- On 26 Mar, Will Lowe wrote about Re: How to Email a Binary file from the 
command line
 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
 
 how 'bout:
 
 mail [EMAIL PROTECTED]  foo.tar.gz
 

NOO!  You will destroy the file.  It will send an 8bit
binary file via a 7bit ascii protocol.  There is a reason uuencode and
base64 encoding were implemented.  Its basically the same as sending a
binary file via ftp in ascii mode.

-- 
Brian 
-
Never criticize anybody until you have walked a mile in their shoes,  
 because by that time you will be a mile away and have their shoes. 
   - unknown  

Mechanical Engineering[EMAIL PROTECTED]
Purdue University   http://www.ecn.purdue.edu/~servis
-


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

1999-03-26 Thread Jeff Katcher


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/ [EMAIL PROTECTED] 
 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


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

1999-03-26 Thread Mitch Blevins
In foo.debian-user, you wrote:
  example:
  [prompt]$ cat mytar.tar.gz |mimeit application/x-gtar/ [EMAIL PROTECTED] 
  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!)

It splits the file up into chunks and sends it one chunk per mail
because some mail transports will reject mail over a certain size.

I don't know how netscape re-assembles these chunks.

You can try making the default chunksize larger so that it is not split.
To do this, you can add the -s option to the end of the command, along
with the maximum message size.

For example:
[prompt]$ cat mytar.tar.gz |mimeit application/x-gtar/ [EMAIL PROTECTED] 
Subject -s 1000

will not split anything unless it is bigger than 10 Megs.
mimeit just calls the splitmail command, so see man splitmail for
more details.

-Mitch


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

1999-03-26 Thread Jeff Katcher

 It splits the file up into chunks and sends it one chunk per mail
 because some mail transports will reject mail over a certain size.
 
 I don't know how netscape re-assembles these chunks.

It Dosn't
 
 You can try making the default chunksize larger so that it is not split.
 To do this, you can add the -s option to the end of the command, along
 with the maximum message size.
 
 For example:
 [prompt]$ cat mytar.tar.gz |mimeit application/x-gtar/ [EMAIL PROTECTED] 
 Subject -s 1000

Worked Like a charm!!
Thank you Very much!

When sent like this it sends the file in a format that Netscape can
understand and I get the file intact.

I suppose if i get some software for windows that will reassemble a mime
text file, I will be able to use the split messages.  I don't think i
will need this for a while yet.  Thanks again!