Sponsored Content
Top Forums Shell Programming and Scripting Problem with mailx command when sending attachment. Post 91475 by guhas on Friday 2nd of December 2005 11:43:00 AM
Old 12-02-2005
try this way ....should work

(cat body;uuencode att1.csv att1.txt)|mailx -s "Production Monitoring Report(Unix Side)" milton.yesusundaram@patni.com"

where att1.csv is the file you are attaching and att1.txt is the file that the person in mail will get as attachment....

it is suppose to work
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sending email with text & attachment using mailx

I spent some time working this out, with a little help from various forums, and thought the community would like to know : Here is how you can send an email from a single Unix command line : /usr/bin/echo "Email text\nNew line\nAnother new line" >x | uuencode sourcefile.txt sourcefile.txt |... (3 Replies)
Discussion started by: haryadoon
3 Replies

2. Shell Programming and Scripting

Problem while sending message and attachment with mailx

Hi All, I am trying to send a mail with an attachment and message. Following command I am using. (cat <messagefile> ; uuencode <attachmentfile> <attachmentfile>)|mailx -s"Subject" dave@email.com In the received mail, message body is appearing fine. But attachment is not coming. Rather... (2 Replies)
Discussion started by: nihar.dutta
2 Replies

3. Shell Programming and Scripting

mailx attachment sending large file

Hi I want to sent attachment file which is 400mb size.(single file, not tar file) is there any way that these kind of large files can be divided into small sizes and sent as attachments thanks with anticipation (3 Replies)
Discussion started by: karthikn7974
3 Replies

4. Shell Programming and Scripting

Problem with Mailx command to send mail with attachment

Hi, I am using mailx command to send a mail with attachment. It's working fine, but with attachment I am getting one extra attachment like (ATT00131.txt). I have tried to use unix2dos command also. But still I am getting the extra attachment. I am using the following code: subject="temp... (5 Replies)
Discussion started by: viswanatharv
5 Replies

5. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

6. Shell Programming and Scripting

Problem in Sending mail as an attachment

Hi, I need to send a email as a txt file and i used the commands, (echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID" I received email with a attachment with all data but i get all of them in one row. For example: If file.txt contains value... (1 Reply)
Discussion started by: skcvasanth
1 Replies

7. Shell Programming and Scripting

mailx not sending excel attachment properly

Hi, I am trying to send email with attachment using mailx command. I am using the folowing command: uuencode XX_HWSW_BUYERWISE_88963631_1.xls XX_HWSW_BUYERWISE_88963631_1.xls | mailx -s "Test Mail as Attachment" oracleams@xyz.com I get the email in the inbox. However, when I try to open the... (5 Replies)
Discussion started by: asp_julius
5 Replies

8. AIX

Problem with mailx attachment using uunendcode -m

We've been emailing uuencode'd PDF files as attachments with mailx for quite sometime with no problems. Recently we've expanded the volume and have intermittent problems with recipients unable to open the attachment. The same file can be successfully resent at a different time. It's been... (1 Reply)
Discussion started by: Papa Lee
1 Replies

9. Shell Programming and Scripting

Problem in sending mail with attachment

Hi Team, I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB. Not sure what is wrong in the command. MSG_BODY1="hi" LOG_FILE="a/b/c/log1.log"... (2 Replies)
Discussion started by: kmanivan82
2 Replies

10. UNIX for Beginners Questions & Answers

Need help sending attachment via mailx

Hello, I am new to the Unix thing, and I am having trouble sending attachments via shell client putty through mailx. The command I use is $ mailx -s "Subject" user@blah.com < attachment.txt but everytime I do that it would say Cannot open attachment.txt I have the file save to my computer... (5 Replies)
Discussion started by: mrobin20
5 Replies
HXPIPE(1)							  HTML-XML-utils							 HXPIPE(1)

NAME
hxpipe - convert XML file to a format easier to parse with Perl or AWK SYNOPSIS
hxpipe [ -l ] [ -- ] [ file-or-URL ] DESCRIPTION
hxpipe parses an HTML or XML file and outputs a line-oriented representation of it that is well suited to further processing with AWK or similar tools. The format is similar to the ESIS (Element Structure Information Set) that is output by nsgmls/onsgmls. The reverse operation, converting back to mark-up, is performed by the hxunpipe program. The output format is as follows: <!--comment--> Comments are output as *comment I.e., a single line starting with "*" followed by the text of the comment. Line feeds, carriage returns and tabs in the text are written as " ", " " and " ", respectively. Text that looks like a numerical character entity is written with the "&" replaced by "". The line ends with a line feed. Note that onsgmls outputs comments starting with a "_" instead of a "*" and doesn't replace the "&" of numerical character enti- ties by "" (and by default it omits comments altogether). <?processing instruction> Processing instructions are output as ?processing instruction I.e., a single line starting with a "?" followed by the text of the processing instruction. The text is escaped as for comments (see above). <!DOCTYPE root PUBLIC "-//foo//DTD bar//EN" "http://example.org/dtd"> DOCTYPEs are output as one of the following: !root "-//foo//DTD bar//EN" http://example.org/dtd !root "-//foo//DTD bar//EN" !root "" http://example.org/dtd !root "" for respectively: a DOCTYPE with (1) both a public and a system identifier, (2) only a public identifier, (3) only a system iden- tifier, or (4) neither of the two. I.e., a single line starting with a "!", followed by a space and a possibly empty quoted string, followed optionally by a space and arbitrary text. Note the quotes for the public identifier and the absence of quotes for the system identifier. <elt att1="value1" att2="value2"> A start tag is output as Aatt1 CDATA value1 Aatt2 CDATA value2 (elt I.e., as zero or more lines for the attributes and one line for the element type. Each line for an attribute starts with "A" fol- lowed by the name of the attribute, a space, the literal string "CDATA", another space, and the attribute value. The text of the attribute value is escaped as for comments (see above). The line for the element type starts with "(" followed by the element type. hxpipe does not read DTDs and assumes that attributes are always CDATA. It never generates other types (IMPLIED, TOKEN, ID, etc.), unlike onsgmls. </elt> End tags are output as )elt I.e., as a line starting with ")" followed by the element type. <empty att1="val1" att2="val2"/> Empty elements (in XML) are output as Aatt1 CDATA val1 Aatt2 CDATA val2 |empty I.e., as zero or more lines for attributes and one line starting with "|" followed by the element type. Note that onsgmls never outputs "|". (However, it can optionally output a line consisting of a single "e" just before the "(" line, to indicate that the element is empty.) text Text is output as -text I.e., as a single line starting with a "-". The text is escaped as for comments (see above). line numbers When the -l option is in effect, hxpipe will intersperse the output with lines of the form L12 where "12" is replaced with the line number in the source where the next output came from. hxpipe does not normalize the input and does not add mising tags. It is thus possible that there are unequal numbers of "(" and ")" lines. If it is important that every start tag is matched by an end tag, pipe the input through hxnormalize -x first. OPTIONS
The following options are supported: -l Add "L" lines to the output to indicate the line numbers in the source. OPERANDS
The following operand is supported: file-or-URL The name or URL of an HTML file. If absent, standard input is read instead. EXIT STATUS
The following exit values are returned: 0 Successful completion. > 0 An error occurred in the parsing of the HTML file. hxpipe will try to correct the error and produce output anyway. ENVIRONMENT
To use a proxy to retrieve remote files, set the environment variables http_proxy and ftp_proxy. E.g., http_proxy="http://localhost:8080/" BUGS
The error recovery for incorrect HTML is primitive. hxnormalize can currently only retrieve remote files over HTTP. It doesn't handle password-protected files, nor files whose content depends on HTTP "cookies." SEE ALSO
hxunpipe(1), onsgmls(1). 6.x 10 Jul 2011 HXPIPE(1)
All times are GMT -4. The time now is 12:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy