Sponsored Content
Top Forums Shell Programming and Scripting Send files as an attachment without uuencode Post 302534136 by sgoud on Monday 27th of June 2011 04:43:04 AM
Old 06-27-2011
i have file whic contain data like
Code:
01,011600033,011600033,110516,0801,3,90,,2/
02,011600033,011103093,1,110317,0801,,2/
03,000000000000000000,,056,+00000000000,,,703,+00000000000,

i want igore 03 record which contain 000000000000000 very urgent please give reply whic how to write a script just ignore the 0000000000000 only diplay out put like
Code:
01,011600033,011600033,110516,0801,3,90,,2/
02,011600033,011103093,1,110317,0801,,2/
03,,,,56,,,,,,703,,


Last edited by Scott; 06-27-2011 at 08:59 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to send the multi files as a attachment

Hi all, Could you please guide me to write the shell script, to send a multi file as a attachement . Thanks Murugesh (1 Reply)
Discussion started by: Murugesh
1 Replies

2. UNIX for Advanced & Expert Users

send attachment without uuencode

Hello - In unix, can you tell me IF there is a way to send attachments via email without using uuencode command? Thank you (3 Replies)
Discussion started by: panchpan
3 Replies

3. UNIX for Dummies Questions & Answers

Binary txt file received when i use uuencode to send txt file as attachment

Hi, I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes.. i wanna attach a text file and send to a mail id..used the following code : uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com it works... (2 Replies)
Discussion started by: ash22
2 Replies

4. UNIX for Dummies Questions & Answers

uuencode without attachment

Hi All, I'm using uuencode to send out mail from unix to lotus notes,but i dont have any attachment to send out, I'm getting this message in the body of the mail "Usage: uuencode remotedest" however if i dont use uuencode I'm not able to send out mail Please help Thanks (1 Reply)
Discussion started by: gwrm
1 Replies

5. AIX

Send mail with attachment having csv files

Hi, Could anyone please help me to send multiple files of .csv format in one mail. Thanks Aj (2 Replies)
Discussion started by: atinjain05
2 Replies

6. Shell Programming and Scripting

How to send attachment without using uuencode

H All I want to send attachment in mail but I dont have uuencode installed in AIX server, there is any alternative way to send attachment in mail. (2 Replies)
Discussion started by: ns64110
2 Replies

7. Shell Programming and Scripting

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (3 Replies)
Discussion started by: ns64110
3 Replies

8. AIX

How to send attachment using "sendmail" command or without uuencode command

Hi Guys, I dont have uuencode, mutt, base64 command available on my aix machine there is any alternative way to send file as attachement in mail. (1 Reply)
Discussion started by: ns64110
1 Replies

9. AIX

Need to send attachment in Mail without using uuencode via script in AIX6.1

Dear All, Would some one help me with this to send a file as attachment in a mail using a script without uuencode... I am working on AIX 6.1, the thing is I dont have uuencode available... Is there any other alternate possible way to send file attachment with the mail without using uuencode... (11 Replies)
Discussion started by: msmadhan11
11 Replies

10. Shell Programming and Scripting

Need to send attachment without using uuencode and mutt

Hi, In my Linux am unable to send attachment to mail . Since pkgs for mutt and uuencode is not possible to install any other options for sending attachment will be useful. Tried the below options but its not working. mail -s "testmail" -a <filename> abc@mail.com cat <filename>|mail -s... (4 Replies)
Discussion started by: rogerben
4 Replies
smfi_setmlreply(3N)													       smfi_setmlreply(3N)

NAME
smfi_setmlreply() - sets default SMTP error reply code to a multi-line response SYNOPSIS
PARAMETERS
ctx Specifies the opaque context structure. rcode Specifies the 3-digit (RFC 821/2821) SMTP reply code, as a null-terminated string. rcode must not be a NULL value, and must be a valid or reply code. xcode Specifies the extended (RFC 1893 or 2034) reply code. An xcode must conform to RFC 1893/2034 code. If xcode is set to NULL, an extended code is not used. Specifies the remaining arguments, which are single lines of text. A maximum of 32 arguments can be specified. These arguments are used as the text part of the SMTP reply. The list must be termi- nated with a NULL value. DESCRIPTION
The routine directly sets the SMTP error reply code for a connection. Only and replies are accepted. The list of arguments in must be terminated with a NULL value. is used on subsequent errors from the filter. can be called from any of the functions other than Notes o Values passed to are not checked for standards compliance. o The message parameter must contain only printable characters; other characters may lead to undefined behavior. For example, a CR or LF will cause the call to fail, single (percentage) characters will cause the text to be ignored. If a is required in a string, use the format. o For more information on reply codes and their meanings, see RFC 821, 2821, 1893, and 2034. o If the reply code, that is, rcode, is given a code but is used for the message, the custom reply is not used. Similarly, if rcode is given a code but is used for the message, the custom reply is not used. In neither of the last two cases, an error is returned to the Milter and silently ignores the reply code. o If the Milter returns and sets the reply code to '421', the SMTP server terminates the SMTP session with a '421' error code. RETURN VALUE
fails and returns for the following reasons: o Invalid rcode or xcode argument value. o Memory-allocation failure. o Carriage return or line feed in a text line. o Length of any text line is more than the value(980). o More than 32 lines of text replies are provided. returns on successful completion. EXAMPLES
Consider the following sample code: The following is the SMTP response of the sample code: AUTHOR
The routine was developed by the Sendmail Inc. SEE ALSO
smfi_getsymval(3N), smfi_getpriv(3N), smfi_setreply(3N), smfi_setpriv(3N). on smfi_setmlreply(3N)
All times are GMT -4. The time now is 09:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy