1834856 Members
2426 Online
110070 Solutions
New Discussion

elm and Log files

 
Tracey
Trusted Contributor

elm and Log files

We use elm to attached data files and email them within cron jobs. The output of these commands is a long string of the main elm screen. The command format that we use is:

elm -s "Subject" tracey
Is there a "silent" mode for elm, so I can get rid of these log file eyesores, but still see if it was successfull or not?
8 REPLIES 8
Uday_S_Ankolekar
Honored Contributor

Re: elm and Log files

Hi,

Try mailx -s "subject
-USA..
Good Luck..
Tracey
Trusted Contributor

Re: elm and Log files

I just tried that - all it does is email me the file with the include statements in it. My elms are attached anywhere from 1 to 12 files to each email.
Uday_S_Ankolekar
Honored Contributor

Re: elm and Log files


Hi,
Did you try with uuencode?

uuencode file file |mailx -m -s "subject' mailid

-USA..
Good Luck..
Tracey
Trusted Contributor

Re: elm and Log files

I tried that, it only attached the second file, not both files.
Deshpande Prashant
Honored Contributor

Re: elm and Log files

HI
#uuencode file file |mailx -m -s "subject' Email_id

In above command the and need to be same single file.
If you need multiple files to be send loop in a script.

#---
for i in `ls file*`
{
uuencode $i $i |mailx -m -s "subject' mailid
}

#--
Thanks.
Prashant.

Take it as it comes.
Tracey
Trusted Contributor

Re: elm and Log files

If I sent each file in a seperate email, I do beleive my users would hunt me down!

I also read in the uuencode man page that uuencode-ing a file will increase the file size by about 35%. (Not good for my laptop users)

Thanks for you help.
Mary Ann Lipa
Valued Contributor

Re: elm and Log files

Hello,

why don't you try an tar all the files first, merge as one tar file and then send it via the above procedures...

mailx -s "subject" tracey < [include_tar_file]





d_b
Which is worse, smoking or picking your nose in a public place?
Tracey
Trusted Contributor

Re: elm and Log files

Tar'ring the files would work if I was sending it to another Unix box, but I am sending it to Microsoft Exchange mailboxes that are using Outlook 2000 to read their messages. As far as I know there is no easy way for my users to untar a file, is there? Keep in mind that I am happy if these users can open the attachment up without calling me with questions! :)