Re: awk problem
- From: franzi <hazzino@xxxxxxxxx>
- Date: Mon, 22 Oct 2007 05:57:41 -0000
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
.
- Follow-Ups:
- Re: awk problem
- From: Stephane CHAZELAS
- Re: awk problem
- Prev by Date: Top 10 posters comp.unix.shell
- Next by Date: Re: Announcement: bashcritic
- Previous by thread: retriving files with the shell
- Next by thread: Re: awk problem
- Index(es):
Relevant Pages
|