06-03-2014
Email attachment contents misaligned
Hi All,
I am using mail -s in my shell script to write contents of logfile as the content of my email, and attaching the error_log.txt along with it.
When the email gets sent out, the contents of the attachment error_log.txt is misaligned.
(cat $logfile ;uuencode $error_log.txt error_log.txt ) | mail -s "Update XXX"
email@yahoo.com
I tried mutt and see the same issue. Can someone help me how the attachment can be sent out without the contents being misaligned?
Thanks in advance.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have 2 questions regarding sending mail as attachment.
1. Using mime type (From Oracle tools which reside on UNIX)
When send the mail(txt file) as an attachment, on some servers like Hotmail, the email goes perfect as an attachment. But on some servers like yahoo, get embedded mail which... (2 Replies)
Discussion started by: prasad01
2 Replies
2. UNIX for Dummies Questions & Answers
Is there a way to send an email attachment? So far no where I've looked has given me any leads. (2 Replies)
Discussion started by: Cyro
2 Replies
3. UNIX for Dummies Questions & Answers
how to deattach attachment of email (4 Replies)
Discussion started by: kandati
4 Replies
4. AIX
Hi,
I have .ksh file which internally calls a .sql file. This sql file writes a file with the result. I am using the following command to send email with the result file as attachment
uuencode file.txt file.txt | mail -s "Subject" abc@abc.com.
When i run the .ksh file i get a message you... (5 Replies)
Discussion started by: piyushprabhakar
5 Replies
5. Shell Programming and Scripting
As a part of requirement I need to send out mails with attachment from UNIX. I have to take query the Oracle DB and send the result of the query in an attachment through mail.
I use the following script for the same.
#!/bin/csh
#!/bin/bash
#!/bin/ksh
ATTFILE=/folder1/test.xls
cd... (1 Reply)
Discussion started by: Sgiri1
1 Replies
6. Shell Programming and Scripting
Hello,
I created the following script but i'm trying to figure out why i keep getting an error.
#!/usr/bin/perl -w
use strict;
use warnings;
my $baseDir = '/export/home/omcadmin/bin';
my $attachment = "$baseDir/message.txt";
my $from = 'xxx@xxx.com';
my $to = 'xxx@xxx.com';
my... (10 Replies)
Discussion started by: xmaverick
10 Replies
7. Solaris
I'm trying to send a .zip file from my unix box to my work email (email client outlook)
The file name that I'm trying to sent is sites.zip and this is how I do it:
uuencode sites.zip | mailx -s "testing" myname@mydomain.com
When I open the .zip, the zip is empty. Looking around the we, I... (17 Replies)
Discussion started by: amb1s1
17 Replies
8. Shell Programming and Scripting
Hi,
Can we send gpg encrypted file as an email attachment using uuencode in linux??if so can you give me the code..
Regards,
Sandeep. (1 Reply)
Discussion started by: sandeep karna
1 Replies
9. Shell Programming and Scripting
Hi All,
The below code is working fine for me.
mailx -s hello abc@xyz.com <<EOT
Hello !!!
How are you?
Regards
Rahul
EOT
But i am not able to send csv file with the mail .Getting just themail but not the attachment.
uuencode /path/s1.csv | mailx -s hello abc@xyz.com <<EOT... (9 Replies)
Discussion started by: rafa_fed2
9 Replies
10. Shell Programming and Scripting
I have a file in unix, while i do email that file to some one from unix, the attachment file data is displaying in the email. (as body of the email).
but if the file has some special characters , the file is emailing as attachment.
But i need the file as the body in the email if it has special... (1 Reply)
Discussion started by: nani1984
1 Replies
LEARN ABOUT DEBIAN
wwwerrs
wwwerrs(8) System Manager's Manual wwwerrs(8)
NAME
wwwerrs - httpd log rotation for wwwstat
SYNOPSIS
wwwerrs [error log name]
DESCRIPTION
This program reads the httpd error_log logfile (or whatever file is given as the single argument) looking for failed requests (bad URLs)
which include a valid Referer (and thus can be tracked to the origin of the reference). It assumes that the error_log has been enhanced to
include the referer information (as in NCSA 1.4 and later).
The output is an HTML file that makes it easy to check references. The script should be edited to discard normal error messages, where
normal is dependent on your particular server.
SEE ALSO
crontab(1), httpd(1m), perl(1), wwwstat(1), splitlog(1), monthly(8), oldlog2new(8)
More info and the latest version of wwwerrs can be obtained from
http://www.ics.uci.edu/pub/websoft/wwwstat/
ftp://www.ics.uci.edu/pub/websoft/wwwstat/
If you have any suggestions, bug reports, fixes, or enhancements, please join the <wwwstat-users@ics.uci.edu> mailing list by sending e-
mail with "subscribe" in the subject of the message to the request address <wwwstat-users-request@ics.uci.edu>. The list is archived at
the above address.
18 November 2004 wwwerrs(8)