[Novalug] search path

Peter Larsen peter@peterlarsen.org
Mon Feb 3 18:23:58 EST 2014


Use 'which fwknop' - it will return the execution path. Be aware, that
once you have run the program, even if you change the path for that
session you'll be executing the old one. So if you find the same
executable in multiple places, change your profile setup fixing the PATH
seeting, log out (or close the terminal) and log in again to get the
profile re-executed.

Btw. verify that /usr/bin and /usr/bin/X11's instances are both refering
to the same inode (hard link). If not, you're asking for trouble. Rename
one of them so there's no doubt which program you're running.


-- 
Regards
  Peter Larsen



On 02/03/2014 12:19 PM, shawn wilson wrote:
> I guess the question is how do I figure out what program I'm running?
> Or maybe why giving an absolute path is causing different results?
>
>  % fwknop
>                                  ~ swlap1
> fwknop: error while loading shared libraries: libfko.so.0: cannot open
> shared object file: No such file or directory
>  % echo $PATH
>                                  ~ swlap1
> /home/swilson/.rvm/gems/ruby-2.0.0-p247/bin:/home/swilson/.rvm/gems/ruby-2.0.0-p247@global/bin:/home/swilson/.rvm/rubies/ruby-2.0.0-p247/bin:/home/swilson/.rvm/bin:/home/swilson/perl5/perlbrew/bin:/home/swilson/perl5/perlbrew/perls/perl-5.16.2/bin:/home/swilson/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/android-sdk-update-manager/platform-tools
>  % whereis fwknop
>                                  ~ swlap1
> fwknop: /usr/bin/fwknop /usr/bin/X11/fwknop /usr/local/etc/fwknop
> /usr/share/man/man8/fwknop.8.gz
>  % /usr/bin/fwknop
>                                  ~ swlap1
> Must use --destination unless --test mode is used
> _______________________________________________
> Novalug mailing list
> Novalug@calypso.tux.org
> http://calypso.tux.org/mailman/listinfo/novalug




More information about the Novalug mailing list