Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trying to send an FSG report as attachment..?

Status
Not open for further replies.

bgreen

Programmer
Feb 20, 2003
185
CA
Hi all,

I am trying to send an FSG report as an attachment through AIX env. but when its recieved and opened the output format seems to be lost or the lines are to long or something like that. If I ftp it to my desktop it will open fine in notepad.

Code:
uuencode /ora_common/ACCPT/out/o452681.out TEST.txt | mailx -s "TEST EMAIL" bg@test

Help please I need to send these FSG's to a client.
 
Hi,
Try this script to send your report as attachement file

begin of script -----------------
TO="your.addresse@your.domain"
SUBJECT="File attachement"
F1="/tmp/cn2i_doublons"
/usr/bin/mail -s &quot;${SUBJECT}&quot; ${TO} <<-END-OF-MAIL

Hello from your server,
Here is your file attached.
Care if you cut and paste this text, put only one tab character before the ~<, blanks don't work.
~< ! uuencode /path/to/your/o452681.out test.txt
END-OF-OF
end-of-script ---------------

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top