john@system7 ~ $ type get_iplayer
get_iplayer is hashed (/usr/local/bin/get_iplayer)

john@system7 ~ $ echo $PATH
/home/john/perl5/bin:/home/john/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

john@system7 ~ $ which get_iplayer
/usr/bin/get_iplayer

john@system7 ~ $ get_iplayer
bash: /usr/local/bin/get_iplayer: No such file or directory

john@system7 ~ $ /usr/bin/get_iplayer --pid=b09fx651 --vmode=best --force
get_iplayer 3.06-ppa31a, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.
Matches:
350: BBC News at Ten - 22/11/2017, BBC One, b09fx651
INFO: 1 matching programmes

On 25 November 2017 at 17:19, Ralph Corderoy <ra...@inputplus.co.uk> wrote:
> Hi John,
>
>> so I deleted the executable in /usr/local/bin. However even though
>> 'which get_iplayer' returns /usr/bin (the location where the PPA
>> version is installed) when I try to run it, something is still
>> pointing to /usr/local/bin.
>
> How do you know this?
>
> Try `type get_iplayer' as an alternative to which(1).  That's built-in
> to the bash shell you're using and tells you what it will do.  Is your
> $PATH set up to have /usr/local/bin before /usr/bin?  What happens if
> you give an explicit path to run it, i.e. /usr/bin/get_iplayer?
>
> --
> Cheers, Ralph.
> https://plus.google.com/+RalphCorderoy

_______________________________________________
get_iplayer mailing list
get_iplayer@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/get_iplayer

Reply via email to