Problem in attaching CVS file to the mail


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Problem in attaching CVS file to the mail
# 1  
Old 12-01-2009
Problem in attaching CVS file to the mail

i wrote this code
Code:
(( cat $REPORT_EMAIL;uuencode <$OUTFILE $OUTFILE ) | mailx -s "Auto Policy Attach Report Before batch job " $SUPPORT_EMAIL_GRP)

in my shell script to attach afile



but in the mail i donot get a attachment
contais of the mail is
Code:
Auto Policy Attach Report Before batch job AutoPolicyattach_Before01-12-2009 created successfully.begin 644 /app/imacs-was/AutoPolicyattach_Before01-12-2009.csv
M5%)!3E-!0U1)3TXL4$%25"Q005)434]$14PL1$530U))4%1)3TXL0T].3D5#
B5$E/3B!465!%+$)204Y#2"Q44D%.4T%#5$E/3B!$051%"E1)
`
end

can someone help me

---------- Post updated at 06:08 AM ---------- Previous update was at 02:39 AM ----------

When i exclude the cat command
uuencode <$OUTFILE $OUTFILE | mailx -s "Auto Policy Attach Report Before batch job " $SUPPORT_EMAIL_GRP
it is working fine

Last edited by pludi; 12-01-2009 at 03:16 AM.. Reason: code tags, please...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Emergency UNIX and Linux Support

Problem in attaching zone

Hi, I have installed few Veritas packages in my local zone. Prior to that, I had detached non-global zones. After successfull installation of veritas packages on global zone, I am attaching non-global zones with -u option, but stuck with one NGZ. One of the NGZ is having gsk7bas 7.0.4.38 while... (5 Replies)
Discussion started by: solaris_1977
5 Replies

2. Shell Programming and Scripting

Mail not attaching the attachment when schedule in crontab

Hi , Iam want to send the mail with attachment , iam using below in my script uuencode /path/pathname/filename filename.csv | mailx -s "subject of mail" vinoth@xxx.com when i trigger the script manually from command prompt i can get with the attachment but when i schedule it in crontab... (4 Replies)
Discussion started by: vinothsekark
4 Replies

3. Web Development

Attaching " Thank You " pop-up window in php form mail code

Dear Sir, I have got a php mail form code. Using this code, I want to use the JavaScript for " Thank You " pop-up window in the php form mail code. Where do I add the pop-up JavaScript for "thank you" ? My code is as follows: <?php //--------------------------Set these... (1 Reply)
Discussion started by: swapan
1 Replies

4. Shell Programming and Scripting

problem with attaching multiple attachments dynamically.

Guys, I've been trying to attach & email all txt files from my directory using the shell script below: #!/usr/bin/sh ################################################################################ send_ml_rej_notn() { FILE_NAME=${1} ATTACH_FILE_NAME=`basename ${FILE_NAME}` if ; then ... (0 Replies)
Discussion started by: bhagat.singh-j
0 Replies

5. Shell Programming and Scripting

Attaching .csv file and sending email

I need help with writing a shell script for writing data from a table into a .csv file and send the file has email attachment. I stuck up with attaching the file to the email. Thanks, (1 Reply)
Discussion started by: Beena
1 Replies

6. Solaris

Solaris 10, problem with attaching driver

Today I installed Solaris driver for my NIC card (downloaded from OpenSolaris site ) I`m using Solaris 10 x86 based PC ! When I installation was completed I saw a message "Warning driver successfully added to system bad failed to atach " , then i looked at /etc/drivers_aliases and saw... (3 Replies)
Discussion started by: solaris_user
3 Replies

7. Shell Programming and Scripting

attaching file in mail command from shell script

Hi all, Currently in shell script i am using the following command to send mail echo "Certain assets are not loaded properly. PFA the result of the DataLoad" | mail -s "Weekly DataLoad - Failure Notification !!" $MAILINGLIST I need to attach a file along with that. How should i handle this... (7 Replies)
Discussion started by: ananthi_ku
7 Replies

8. Shell Programming and Scripting

Problem in editing files in eclipse with cvs

I am using CVS repositories with eclipse. I successfully created CVS Repositories with in eclipse. But I have a big problem, I am unable to edit any of the files in our project. I think it is due to read only property of the file. I also read the given link ... (2 Replies)
Discussion started by: sufyanfzd
2 Replies

9. Shell Programming and Scripting

attaching the file to mail

Hi, In my script, i am using tar to combine 2 files, so that i can attach it to the mail. everything is working fine and sending the mail successfully. But, when i save the file to desktop and unzip it. a series of directories are there and finally those tar files are there. i am using tar -cf... (1 Reply)
Discussion started by: javeed7
1 Replies

10. HP-UX

Attaching files in Mail with HP Unix

I am trying to attach a .xls file using uuencode in HP Unix uuencode res1.xls res1.xls | mailx abc@xyz.com But in the receiving end, I couldn't see the attachement, instead of it some encoded text is there in the body of mail Can anybody suggest how to attach the files in HP Unix. I don't... (12 Replies)
Discussion started by: unipepper
12 Replies
Login or Register to Ask a Question