1833883 Members
2001 Online
110063 Solutions
New Discussion

Re: uuencode error

 
歐陽健民
Occasional Contributor

uuencode error

1.I use uuencode such as listed below
uuencode $PATH/pdwb_ftp.log pdwb_ftp.log |mailx -s " FTP Log " abc@com.tw
2.Finally I got some trash listed below
begin 666 pdwb_ftp.log
M,#2]A<"]P9'=B.#4T+W!D
M=V(X-30NM+BXN+BXN(`I#;VYN96-T960@=&\@,3`N,2XR+C,N"C(R,"!&5%`@4V5R=F5R
M(')E861Y+@HS,S$@4&%SM(%5S97(@=6UC9G1P(&QO9V=E9"!I;BX*,C`P(%1Y<&4@M,"!03U)4(&-O;6UA;F0@M;6]D92!D871A(&-O;FYE8W1I;VX@9F]R(%-50D-?4T8N0U-6+@HR,C8@5')A
M;G-F97(@8V]M<&QE=&4N"C4W."!B>71EM71EM,C@Z,#(@+VAO;64O9V%T97=A>2]A<"]P9'=B.#4T+W!D=V(X-30NG0R!&:6QE($944"!40R`Q,"XQ+C(N,R!%;F0@+BXN+BXN+BXN+B`*
`
end

3.Please give a hand!!!!
Thanks
2 REPLIES 2
Michael Tully
Honored Contributor

Re: uuencode error

Try something like this. It is important to have the correct suffix of the file. So if it is a text file, include it as .txt

for e in `echo file1 file2 file3`
do
uuencode $e $e.txt
done|mailx -m -s "mymail" username@domain.com
Anyone for a Mutiny ?
歐陽健民
Occasional Contributor

Re: uuencode error

Thanks for your reply,I will tyr this