L
Leon Nabot
Hello,
I try to find a quick solution to find onto the PATH where is located an
executable as "which" do.
I have tried to use the "which" command into a pipe or backtick but the
returns are not the same in all Unixes, in particular if the searched
command is aliased, .
Anyone would know an easy way to do this ?
For the moment the only solution seems to write a module which browse
each directory of the PATH searching the file.
We need a solution that works only with the defaults functions/libs of a
Perl 5.005 (And up)
Rgds.
Léo
I try to find a quick solution to find onto the PATH where is located an
executable as "which" do.
I have tried to use the "which" command into a pipe or backtick but the
returns are not the same in all Unixes, in particular if the searched
command is aliased, .
Anyone would know an easy way to do this ?
For the moment the only solution seems to write a module which browse
each directory of the PATH searching the file.
We need a solution that works only with the defaults functions/libs of a
Perl 5.005 (And up)
Rgds.
Léo