[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: strange "Cannot execute binary file" error message



Title: strange "Cannot execute binary file" error message
very intresting, If I imbed a control character in an echo statement,
bash WILL NOT run the echo statement.
 
I had to put the characters in a file, then cat the file instead of
echoing the characters.....
 
ahhhhh....That was a strange one
 
George
-----Original Message-----
From: George Gallen [mailto:ggallen slackinc com]
Sent: Thursday, October 03, 2002 11:17 AM
To: 'enigma-list redhat com'
Subject: RE: strange "Cannot execute binary file" error message

Doesn an ESC character need to be escaped (ie. \)
 
The first echo, even though it looks like "2" is really
 
"^]L2" (esc L 2)
 
do I need to change that to be:
 
"\^]L2"?
 
This works fine on our Tru64 system, so I didn't think it needed to be
changed for bash.
 
George
-----Original Message-----
From: George Gallen [mailto:ggallen slackinc com]
Sent: Thursday, October 03, 2002 10:57 AM
To: 'enigma-list redhat com'
Subject: strange "Cannot execute binary file" error message

the "{tof}" within this message is actually a x0c Control V, Control L
The usage being: echo "testing" | ./driver.PR22

(echo -n "2" ; cat - | /usr/mbin/lf2crlf  ; echo -n "{tof}") | lp -d PR32

gives the following error:
SH: ./driver.PR22: cannot execute binary file   

and the file's permissions:
-rwxr-xr-x   1 root     daemon        73 Dec 12  2000 driver.PR22

BUT.....

(cat - | /usr/mbin/lf2crlf  ; echo -n "{tof}") | lp -d PR32
works fine

and it's permissions:
-rwxr-xr-x   1 root     daemon        57 Dec  5  2000 driver.PR32


any  idea of what is happening? why it won't execute the script?

George


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]