Re: awk problem



On 21 Ott, 18:47, Stephane CHAZELAS <this.addr...@xxxxxxxxxx> wrote:
2007-10-21, 15:59(-00), franzi:

Why running awk i got that kid of problem?
bash: /usr/bin/awk: cannot execute binary file
i'm under macosx tiger and the filesystem is in writeable mode

bash returns that message when the system doesn't recognise the
file as an executable one (one in the format of executable files
it recognises, such as ELF files or files starting with a #!
line) and bash itself doesn't want to execute it itself (as a
bash script) (because it is a binary file; and the test bash
uses to recognise whether it's a binary file or not is to check
whether the first line contains a NUL character).

So it would seem your /usr/bin/awk file got corrupted or
something like that.

Can you execute it from another shell?

What does "file /usr/bin/awk" tell you?

--
Stéphane

that it's a data file
i ported gawk,but i di not understand wthat's wrong under
macosx10.4.10
i compiled the kernel an yaer ago but it seems not to mhave any
problem
thanks in advance

.



Relevant Pages

  • Re: HELP!! cannot execute binary file
    ... All the download binary file sudden can not execute.(Packages ... bash: ./filename: cannot execute binary file ... This executable is test OK when I download it. ...
    (comp.os.linux.misc)
  • Re: awk problem
    ... it recognises, such as ELF files or files starting with a #! ... line) and bash itself doesn't want to execute it itself (as a ... bash script) (because it is a binary file; ... uses to recognise whether it's a binary file or not is to check ...
    (comp.unix.shell)
  • Re: awk problem
    ... bash returns that message when the system doesn't recognise the ... uses to recognise whether it's a binary file or not is to check ... Can you execute it from another shell? ...
    (comp.unix.shell)
  • Re: HELP!! cannot execute binary file
    ... All the download binary file sudden can not execute.(Packages ... bash: ./filename: cannot execute binary file ... This executable is test OK when I download it. ...
    (comp.os.linux.misc)
  • Re: HELP!! cannot execute binary file
    ... All the download binary file sudden can not execute.(Packages ... bash: ./filename: cannot execute binary file ... This executable is test OK when I download it. ...
    (comp.os.linux.misc)