problem when decoding a binary file


 
Thread Tools Search this Thread
Operating Systems Solaris problem when decoding a binary file
# 1  
Old 05-29-2008
problem when decoding a binary file

I tried to decode a binary script using the command 'uudecode'. but it is giving error as 'No begining line'.

'uudecode -o <outfile name> <binary file>'

Please help me in resolving this.
# 2  
Old 05-29-2008
uudecode expects a file in uuencode format, and complains if you feed it something else. Perhaps you are actually looking for the uuencode command?

When you encode something with uuencode, the result looks like this:

Code:
$ uuencode /etc/mailname file.txt
begin 644 file.txt
):6-K>2!P;V\*
`
end

(I just picked a suitable short file to use as an example.)

The decode program will extract the stuff between "begin" and "end" into the file name defined on the begin line, with the requested permissions. If the input does not contain data in this format, you are doing something wrong.

Last edited by era; 05-29-2008 at 09:07 AM.. Reason: Add example of what uuencode looks like
# 3  
Old 05-29-2008
My binary file does not contain the begin and end line.

Is there any other way to convert the file to normal file.
# 4  
Old 05-29-2008
It is not clear what you are trying to accomplish. I already suggested uuencode if your goal is to make the file suitable for sending as a text file over email. What do you mean by a "normal file"? What is the problem you are trying to solve and where does the problematic file come from?
# 5  
Old 05-29-2008
I think upy can use strings -a for the same.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Problem in printing binary tree using php and mysql

Database Structure Root Table ID Root_ Node Level 1 A 0 2 B 1 3 C 1 Child Table ID Left_Node Right_Node Root_Node Root_ID 1 B C A 1 ... (1 Reply)
Discussion started by: Deepak Tiwari
1 Replies

2. Shell Programming and Scripting

Inputs required in decoding file on AIX- executable (RISC System/6000) or object module not stripped

Hi, We are in the process of migrating from AIX to Linux. There is a script of type "executable (RISC System/6000) or object module not stripped" on AIX and we are unable to read the contents of it. Is there a way to read the contents of the file on AIX, so that we can rewrite the code in... (3 Replies)
Discussion started by: venkatesh17
3 Replies

3. Shell Programming and Scripting

Base32 decoding binary file to ascii

I need to convert a binary file which in encoded using base32 encoding technique and convert that into readible ASCII so that i can load the same in DB. is there any command to do the same. sample from the binary file lools like : ... (18 Replies)
Discussion started by: krk
18 Replies

4. Shell Programming and Scripting

PROBLEM with another binary file

Hello, I want to parse another file, i just want the ascii content, here the result of command od -bc file 0000000 036 000 024 000 000 000 377 376 377 010 060 000 060 000 060 000 036 \0 024 \0 \0 \0 377 376 377 \b 0 \0 0 \0 0 \0 0000020 060 000 062 000 106 000... (21 Replies)
Discussion started by: protocomm
21 Replies

5. Shell Programming and Scripting

Problem with binary file

I have a binary file with all content is text, i want convert this binary to a regular file because i want to parse it. Thx. ---------- Post updated at 05:01 AM ---------- Previous update was at 04:34 AM ---------- I have found the solution cat file | tr -d '\0' (8 Replies)
Discussion started by: protocomm
8 Replies

6. Shell Programming and Scripting

Convert binary file to csv and then back to the binary format

Hello *nix specialists, Im working for a non profit organisation in Germany to transport DSL over WLAN to people in areas without no DSL. We are using Linksys WRT 54 router with DD-WRT firmware There are at the moment over 180 router running but we have to change some settings next time. So my... (7 Replies)
Discussion started by: digidax
7 Replies

7. SCO

SCO unix binary compatibility problem

Hi I am looking for sco xenix binary compatibility utility "cvtomf",(convert omf object to COFF object) Would you please help me ? tnx (3 Replies)
Discussion started by: javad1_maroofi
3 Replies

8. Filesystems, Disks and Memory

UNIX problem concerning Microsoft Office Binary

I just started using Terminal on my Mac this summer, and right now I am having problems making a shell script. This shell should run the "Microsoft Setup Assistant" once I run the Automator Script. Alas, I still have problems. Here is the offending scriptlet: Sudo Tcsh root# cd... (2 Replies)
Discussion started by: chrisfrap
2 Replies

9. Solaris

compiled binary file gives "cannot execute binary file"

Hi, I have two Solaris machines. 1. SunOS X 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-1500 2. SunOS Y 5.8 Generic_108528-13 sun4u sparc SUNW,Ultra-60 I am trying to buiild a project on both these machines. The Binary output file compiled on machine 2 runs on both the machines. Where... (0 Replies)
Discussion started by: scgupta
0 Replies

10. Shell Programming and Scripting

decoding commands

hi please can anyone help me in decoding shell commands. i need a way to decode the encrypted shell commands. (8 Replies)
Discussion started by: rochitsharma
8 Replies
Login or Register to Ask a Question