Kevin Ponds wrote:
>>> or something along those lines. Grepping fo "ELF" can also be useful.
>>>
>
> Grepping for ELF is a dangerous way to do it! If you run the script on
> itself,
> it will think that it's a binary.
I think he meant grep'ing for 'ELF' in the output of the file command, not th
All,
Jerome BENOIT :
> in side a bash script, I would like to test is a given program is
> either a binary file or a script file: is there way to so ?
"file -iL" might be what you're looking for. "-i" for mime type output,
"-L" to follow symbolic links:
% file -iL config.guess spamassassin u
Jerome BENOIT mailsnare.net> writes:
>
> I came to this solution too !
>
> Thanks,
> Jerome
>
> Eduardo M KALINOWSKI wrote:
> > or something along those lines. Grepping fo "ELF" can also be useful.
> >
>
Grepping for ELF is a dangerous way to do it! If you run the script on itself,
it will
I came to this solution too !
Thanks,
Jerome
Eduardo M KALINOWSKI wrote:
Jerome BENOIT wrote:
Eduardo M KALINOWSKI wrote:
On Qui, 16 Abr 2009, "Jerome BENOIT" wrote:
Hello List,
in side a bash script, I would like to test is a given program
is either a binary file or a script file:
Jerome BENOIT wrote:
> Eduardo M KALINOWSKI wrote:
>
>> On Qui, 16 Abr 2009, "Jerome BENOIT" wrote:
>>
>>> Hello List,
>>>
>>> in side a bash script, I would like to test is a given program
>>> is either a binary file or a script file:
>>> is there way to so ?
>>>
>> file /path/to/pr
Hello,
thanks for the reply.
Eduardo M KALINOWSKI wrote:
On Qui, 16 Abr 2009, "Jerome BENOIT" wrote:
Hello List,
in side a bash script, I would like to test is a given program
is either a binary file or a script file:
is there way to so ?
file /path/to/program
I know file:
file /path/to/p
On Qui, 16 Abr 2009, "Jerome BENOIT" wrote:
Hello List,
in side a bash script, I would like to test is a given program
is either a binary file or a script file:
is there way to so ?
file /path/to/program
should give the information you need.
--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br
7 matches
Mail list logo