Uuencode & Uudecode - file gets corrupted


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Uuencode & Uudecode - file gets corrupted
# 1  
Old 08-02-2010
Uuencode & Uudecode - file gets corrupted

I need to convert jar files from bin-to-ascii, and then reverse ascii-to-bin. The 'cksum' do not match for few files before and after.

Any idea why Uuencode is corrupting some files?

I am using the following commands:

To encode:
Code:
uuencode -m /tmp/in/myfile.jar myfile.jar > /tmp/in/myfile.jar.encode

To decode:
Code:
uudecode -o /tmp/out/myfile.jar /tmp/in/myfile.jar.encode

Thanks in advance. Any help is greatly appreciated.

Last edited by Yogesh Sawant; 08-04-2010 at 09:28 AM.. Reason: added code tags
# 2  
Old 08-03-2010
Is udecode a typo?
# 3  
Old 08-03-2010
Quote:
Originally Posted by fpmurphy
Is udecode a typo?
Yes. I corrected it.
# 4  
Old 08-03-2010
Well, you are using these 2 commands correctly and they should work as intended. These are the vendor supplied version of the commands, correct? Not something you developed?

What platform and OS version?
# 5  
Old 08-04-2010
Quote:
Originally Posted by fpmurphy
These are the vendor supplied version of the commands, correct? Not something you developed?
Correct, Vendor specific only.


Quote:
Originally Posted by fpmurphy
What platform and OS version?
AIX 5.3 TL10

Well, I guess its the same issue as in this post by 'Charles':
https://www.unix.com/unix-advanced-expert-users/136192-uuencode-then-uudecode-results-dont-match-original-33-time.html

Are there any patches/upgrades available to uuenoce/uudecode to correct this issue?
# 6  
Old 08-05-2010
No idea. But the place to look is IBM Support: Fix Central
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

After Ftp'ing file to destination how to check the file if it is in correct ASCII and not corrupted

Hi Folks, While transferring file from FTP software like Filezilla the files gets corrupted. Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies

2. Shell Programming and Scripting

Uuencode & Mailx

hi, i am trying to send a pdf attachment which has a name of 200 characters using uuencode and mailx. But the email is not getting delivered. uuencode <filename.pdf> <filename.pdf> | mailx -s "Test" <email_id> (2 Replies)
Discussion started by: ATWC
2 Replies

3. Red Hat

.bash_profile file corrupted

Hi, Unexpectedly i entered wrong entries in .bash_profile for my user which has administrative permissions. So, i am getting errors for every command. I dont have backup file also, so any body can help me how to recover it. Regards, Mastan (7 Replies)
Discussion started by: mastansaheb
7 Replies

4. Solaris

WTMPX File corrupted

Hi All I work on solaris 8, 9 and 10 platforms and have encountered an error which is my wtmpx files appear to be corrupted as all entries contain the date 1970 (the birth of unix). Now this is obviously not the case, so my query is: 1 - Can the existing wtmpx files be manipulated to... (6 Replies)
Discussion started by: drestarr96
6 Replies

5. Shell Programming and Scripting

uuencode & uudecode - permissions

$ ls -l example_1.sh -rwxr--r-- 1 vsetm7am nofiles 918 Sep 5 19:54 example_1.sh $ stat -c %a example_1.sh 744 $ uuencode "test.file" <example_1.sh >uuexample.uu $ uudecode uuexample.uu $ ls -l test.file -rw-r--r-- 1 vsetm7am nofiles 918 Sep 7 14:44 test.file How come that the user... (2 Replies)
Discussion started by: MartyIX
2 Replies

6. UNIX for Dummies Questions & Answers

may a corrupted .gz file be repaired?

Preparing for a move to a new server, I needed to offload about somewhat over a gigabyte of newsfeeds that my website collects, and that I had been saving on the server. I tarred them and zipped them into about a dozen smaller files of about 150Mb each. All seemed well. I downloaded them onto my... (3 Replies)
Discussion started by: JohnTinker
3 Replies

7. HP-UX

Could be a corrupted file?

Hello! Do you know the meaning of... "crw-rw---- 1 informix informix 64 0x020001 Jan 21 2004 rifxroot" I don't know what the first "c" means. Furthermor, if I try to copy this file (rifxroot) it appears a message: "cp: cannot open rifxroot: No such device or address" I don't... (1 Reply)
Discussion started by: kaugrs
1 Replies

8. HP-UX

passwd file corrupted

Good Day Our HP box was hacked and the passwd file has been altered,there are only 2 user accounts active,and these dont have any administrative rights.I need to edit the passwd file to correct the su and root entries. Does any body have any suggestions as to how i can do this with out the root... (10 Replies)
Discussion started by: cantona7
10 Replies

9. UNIX for Advanced & Expert Users

UUencode UUdecode

Could any 1 send me the details for uuencode and decode . I am working on something which was coded by some1 else using these two commands . I am having a a pwd file with password in the encrypted form as y\215G\216!A\231Ò.:¹... they use a key file which decrpt that pwd file ....key file... (2 Replies)
Discussion started by: myelvis
2 Replies

10. Shell Programming and Scripting

detecting corrupted file

Hello, Newbie question: How can I detect a corrupted file from a script (ksh)? Thank you, Martin (6 Replies)
Discussion started by: starless
6 Replies
Login or Register to Ask a Question