Re: awk problem
- From: franzi <hazzino@xxxxxxxxx>
- Date: Tue, 23 Oct 2007 06:09:23 -0000
On 22 Ott, 09:44, Stephane CHAZELAS <this.addr...@xxxxxxxxxx> wrote:
2007-10-22, 05:57(-00), franzi:
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?
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
[...]
As Janis suggested, it may also be because you're trying to do:
bash /usr/bin/awk
That is ask bash to interpret /usr/bin/awk as a bash script.
bash will refuse as obviously /usr/bin/awk is not a script but a
binary command on its own.
--
Stéphane- Nascondi testo tra virgolette -
- Mostra testo tra virgolette -
So how can i solve that?
needing some light
thanks alot
.
- Follow-Ups:
- Re: awk problem
- From: Stephane CHAZELAS
- Re: awk problem
- References:
- Re: awk problem
- From: franzi
- Re: awk problem
- From: Stephane CHAZELAS
- Re: awk problem
- Prev by Date: SED quuestion: delete lines to the end AFTER finding a text pattern
- Next by Date: Re: awk problem
- Previous by thread: Re: awk problem
- Next by thread: Re: awk problem
- Index(es):
Relevant Pages
|