Re: adding an attatchment using the mail command?

2004-01-08 Thread Cristian Gutierrez
Mark C. <[EMAIL PROTECTED]> writes:

>Hi,
>
>I run a nightly cronjob to back up certain system files, for the life
>of me I cannot add them as an attatchment, when I mail to files to
>myself, they always got put into the message body.  Reading the man
>pages gives no indication of how to do this, and I'm not sure if you
>can with the 'mail' command (I suppose sendmail would be the other
>alternative).
>
>and googling fails to come up with the correct results (probally my
>search string).

I always do something like this:

  mutt -a some_file -a other_file ... [EMAIL PROTECTED] < mesage_body.txt

and works pretty good :-)

-- 
Cristian Gutierrez  http://www.dcc.uchile.cl/~crgutier
[EMAIL PROTECTED]Jabber:[EMAIL PROTECTED]

the premature program optimization is the root of all evils


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: adding an attatchment using the mail command?

2004-01-07 Thread Antonio Rodriguez
On Wed, Jan 07, 2004 at 04:01:27PM +, Mark C wrote:
> Hi,
> 
> I run a nightly cronjob to back up certain system files, for the life of
> me I cannot add them as an attatchment, when I mail to files to myself,
> they always got put into the message body.  Reading the man pages gives
> no indication of how to do this, and I'm not sure if you can with the
> 'mail' command (I suppose sendmail would be the other alternative).
> 
> and googling fails to come up with the correct results (probally my
> search string).
> 
> Any advise would be appreciated
> 
> Regards
> 
> Mark
> 

Hi Mark, try biabam


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: adding an attatchment using the mail command?

2004-01-07 Thread Mark C
On Wed, 2004-01-07 at 17:13, Morten Bo Johansen wrote:

> You can't do it with 'mail'. You can use 'nail' instead which does
> attachments. If you already have mutt installed you can use that as
> well to send mail with attachments in batch mode.

Cheers, I do have mutt installed, which is what I generally use when
working remotely, will give nail a bash..

Cheers

Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: adding an attatchment using the mail command?

2004-01-07 Thread Morten Bo Johansen
On Wed, 7 Jan 2004 16:01:27 - (GMT) Mark C wrote:

> I run a nightly cronjob to back up certain system files, for the life of
> me I cannot add them as an attatchment, when I mail to files to myself,
> they always got put into the message body.  Reading the man pages gives
> no indication of how to do this, and I'm not sure if you can with the
> 'mail' command (I suppose sendmail would be the other alternative).

You can't do it with 'mail'. You can use 'nail' instead which does
attachments. If you already have mutt installed you can use that as
well to send mail with attachments in batch mode.


HTH,

Morten


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: adding an attatchment using the mail command?

2004-01-07 Thread Uwe Dippel
On Wed, 07 Jan 2004 16:01:27 +, Mark C wrote:

> I run a nightly cronjob to back up certain system files, for the life of
> me I cannot add them as an attatchment, when I mail to files to myself,
> they always got put into the message body.  Reading the man pages gives
> no indication of how to do this, and I'm not sure if you can with the
> 'mail' command (I suppose sendmail would be the other alternative).

Not really, I'm afraid. RFC822 doesn't have it on attachments and mime
(yet). So your mail -s "My backup" [EMAIL PROTECTED] < backupfile necessarily
ends that file up in the message body. And 'mail' is just a frontend to
the Mail Transfer Agent; e.g. sendmail.

In order to help you further, you better specify more details. Some ftp /
nc / nfs might be useful here, depending on the circumstances.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]