LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 11-17-2012, 04:50 PM   #61
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled

Hi Markus I get the following when I do bash newfile.bin

Quote:
[root@localhost finally]# bash newfile.bin
: command not found:
: command not found0:
: command not found4:
Preparing to install...
: command not found6:
'ewfile.bin: line 88: syntax error near unexpected token `{
'ewfile.bin: line 88: ` POSIX_XPG_DF_CMD() {
 
Old 11-17-2012, 04:56 PM   #62
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
mh, what happende when you executed the command I posted above
Code:
sed 's/^M$//' DBConfig_RHEL_SAM_10_0_R5.bin > newfile.bin
were there any errormessages?

Markus
 
Old 11-17-2012, 05:00 PM   #63
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,389

Rep: Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688
Quote:
Originally Posted by carltonp View Post
The following is the output from the commands you suggested...
Code:
[root@localhost finally]# ./DBConfig_RHEL_SAM_10_0_R5.bin
bash: ./DBConfig_RHEL_SAM_10_0_R5.bin: /bin/sh^M: bad interpreter: No such file or directory
if you downloaded the file in binary mode then i am convinced that the file from the server is fubar (i would contact the server admin and tell them they made a mistake making that file).

for the shiggles you can try to download the file in ascii mode and see if it runs ?
 
Old 11-17-2012, 05:05 PM   #64
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
were there any errormessages?

Markus
no errors
 
Old 11-17-2012, 05:05 PM   #65
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,389

Rep: Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688
Quote:
Originally Posted by markush View Post
mh, what happende when you executed the command I posted above
Code:
sed 's/^M$//' DBConfig_RHEL_SAM_10_0_R5.bin > newfile.bin
were there any errormessages?

Markus
(to get ^M type CTRL+V followed by CTRL+M)
 
Old 11-17-2012, 05:32 PM   #66
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
hi Schneidz

Sorry for not replying sooner

When I executed sed 's/^M$//' DBConfig_RHEL_SAM_10_0_R5.bin > newfile.bin

Nothing happened - no error messages
 
Old 11-17-2012, 05:34 PM   #67
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Sorry the last response was for Markus
 
Old 11-17-2012, 05:48 PM   #68
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Going to try in ascii mode.
 
Old 11-17-2012, 06:03 PM   #69
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Tried ascii mode but getting same error messages....

Do you think its a lost cause trying to get this to work?
 
Old 11-17-2012, 06:12 PM   #70
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,389

Rep: Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688
Quote:
Originally Posted by carltonp View Post
Tried ascii mode but getting same error messages....

Do you think its a lost cause trying to get this to work?
not yet. but you should definately let them know their file is bad.

with the sed command, type ctrl-v ctrl-m to make the ^M.

you can try that vi command again eventhough it didnt work the last time.
always make a backup first.
 
Old 11-17-2012, 06:14 PM   #71
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,974

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Lost in the sense that you don't learn anything this way. I would recommend that you learn more about Linux before installing this package. What will you do once it is installed? do you know how to configure the software? can you work with it?

What about your knowledge about Linux? you're a newbie. Learn the basics first. Find challenges which you can handle. Don't you have a book about Linux? maybe you should read an online tutorial, http://rute.2038bug.com/index.html.gz

Markus
 
Old 11-17-2012, 06:26 PM   #72
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by schneidz View Post
with the sed command, type ctrl-v ctrl-m to make the ^M.

.
should I do ctrl-v ctrl-m after sed command?
 
Old 11-17-2012, 06:28 PM   #73
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
I got the ^M but I'm not sure what this will achieve...
 
Old 11-17-2012, 06:34 PM   #74
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,389

Rep: Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688Reputation: 688
Code:
 sed 's/ctrl-v ctrl-m$//' DBConfig_RHEL_SAM_10_0_R5.bin > newfile.bin
dont literally type ctrl-v ctrl-m. it should result in something that looks like a ^M instead.

edit: this mite work better:
Code:
 tr '\r' '\n' < DBConfig_RHEL_SAM_10_0_R5.bin > newfile.bin

Last edited by schneidz; 11-17-2012 at 06:43 PM.
 
Old 11-17-2012, 06:47 PM   #75
carltonp
Member
 
Registered: Nov 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
schniedz,

Really appreciate you sticking with me on this.

So when I enter sed 's/ctrl-v ctrl-m$//' DBConfig_RHEL_SAM_10_0_R5.bin > newfile.bin nothing is returned.

However, I'm entirely sure what I need to do with tr '\r' '\n'

Sorry for being a little dim with this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Converting a binary file from little endian to big endian jaepi Programming 6 09-05-2011 09:51 PM
'Cannot Execute Binary File' issue kickout Linux - Software 4 09-16-2010 10:54 PM
Tar archive from windows to linux, binary file issue jblevins Linux - General 3 04-13-2009 11:50 PM
converting a hex file to binary linx win Programming 3 07-20-2006 03:04 AM
j2sdk installation issue - cannot execute binary file mcolley73 Linux - Software 2 04-18-2004 12:40 PM


All times are GMT -5. The time now is 04:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration