Send files as an attachment without uuencode


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Send files as an attachment without uuencode
# 1  
Old 06-27-2011
Send files as an attachment without uuencode

Hi All,
Is there anyway we can send files as an attachment? I tried running uuencode but its giving an error as below:

Code:
$ uuencode Z1.txt Z1.txt |mailx -s "hi" abc@abc.com
ksh: uuencode:  not found.
Null message body; hope that's ok

When i gave which command then it says there is no uuencode as below:
Code:
$ which uuencode
which: 0652-141 There is no uuencode in /usr/bin /etc /usr/sbin /usr/ucb /home_dir/a0021/bin /usr/bin/X11 /sbin . /opt/oracle/product/10.2.0_client/bin.


Thanks in Advance,

Last edited by pludi; 06-27-2011 at 04:58 AM..
# 2  
Old 06-27-2011
Try /usr/bin/base64
# 3  
Old 06-27-2011
Hi,
the path /usr/bin/base64 is not existing in my server....
# 4  
Old 06-27-2011
try mutt command
# 5  
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
# 6  
Old 06-27-2011
@Sgoud,

please open a new thread.

for your problem, you can use the grep command with -v option

Code:
grep -v "000000000000000" filename > newfilename

# 7  
Old 06-27-2011
Quote:
Originally Posted by sgoud
i have file whic contain data like
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
01,011600033,011600033,110516,0801,3,90,,2/
02,011600033,011103093,1,110317,0801,,2/
03,,,,56,,,,,,703,,
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question