If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > attachement in the email

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-02-06, 16:14
riah riah is offline
Registered User
 
Join Date: Nov 2006
Posts: 3
attachement in the email

Hi All,

Am using the below script to send the attachement , its working perfectly fine.

EMAIL_ATTACH_FILE=/export/home/oracle/report/report.txt

/usr/bin/mailx -s "${SUBJECT}" ${TO} <<-EOF
Hi,

REPORT FOR INVALID...

Regards,

`unix2dos $EMAIL_ATTACH_FILE | uuencode $EMAIL_ATTACH_FILE`


~.
EOF

echo "Done!"




But the attached file name is coming up with _export_home_oracle_report_report.txt instead of report.txt

Can someone please suggest me ...

Thanks
Riah.
Reply With Quote
  #2 (permalink)  
Old 11-03-06, 00:48
pdreyer pdreyer is offline
Registered User
 
Join Date: May 2005
Location: South Africa
Posts: 1,268
The uuencode parameter specify the name you want to assign to the attached file i.e.

`unix2dos $EMAIL_ATTACH_FILE | uuencode report.txt`
Reply With Quote
  #3 (permalink)  
Old 11-03-06, 15:16
riah riah is offline
Registered User
 
Join Date: Nov 2006
Posts: 3
Hi,

This has solved my problem...

Thank very much for your reply..
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On