1826341 Members
4150 Online
109692 Solutions
New Discussion

Re: uuencode command

 
matthew mills
Frequent Advisor

uuencode command

I have a doc on the HPUX 11.00 that I want to send to a user. The doc has ^M ^L characters. when the users opens the doc in Word it shows the characters and is one big doc with no page breaks. I have been trying to use the uuencode to fix this with no luck. This is the command I am using:

uuencode orgemail.doc uuemail.doc >> fixedemail.doc

The fixedemail.doc ends up looking like this:

MM4U1!3D9)3E,@5')A=F5L.B`U5#A(#0I!8V-T(&-L87,Z#0H@16YL('1V;"]P
M9#H@(#(Q-C(P-C`@,3@M,3`T-"!0,D8S,2XS,#`P+3(Q5#(@("`@("`@("`@
M("`@("`@4S0T,3(Q("!41#`@(%`P6$%!#0H@("!34DXZ("!334DT-S4P,C4W
M-3@Y*B`@2D].+T-#0SH@-50X2#,X+S,X-50X2"`@0V]S="!%
Thanks in advance! ITRC ROCKS!
6 REPLIES 6
Uday_S_Ankolekar
Honored Contributor

Re: uuencode command

You can use uuencode as an attachement to the mail. Here is the syntex

uuencode | sendmail emailid
Ex:
uuencode /etc/passwd password.hostname | sendmail username@yourdomain.com

-USA

-USA..
Good Luck..
TwoProc
Honored Contributor

Re: uuencode command

You've got two different issues:
A) cr/lf
B) how to uuencode and mail - this has already answered in the previous posting.

Your cr/lf issues can be fixed by using the ux2dos command.

$ ux2dos originalfile > fixedfile

We are the people our parents warned us about --Jimmy Buffett
matthew mills
Frequent Advisor

Re: uuencode command

I tried it and the result is ok. The doc is readable. but the page break is just showing an "^L".
Steven E. Protter
Exalted Contributor

Re: uuencode command

This script actually works.

Its a copy of a production script that does file attachments very nicely.

http://www.hpux.ws/mailfile2

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: uuencode command

I just remembered something. When I was developing the script I just posted there was a problem. Turns out the smtp gateway server needed a bug fix upgrade. It was thrashing the attachments.

If my script does not work, talk to the administrator if you are running this mail through any kind of a gateway type server.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
matthew mills
Frequent Advisor

Re: uuencode command

ok