Re: [Vserver] ./testme.sh: line 115: which: command not found

From: Stephen Harris <lists_at_spuddy.org>
Date: Fri 07 Oct 2005 - 19:47:01 BST
Message-ID: <20051007184701.GA22158@pugwash.spuddy.org>

On Fri, Oct 07, 2005 at 08:14:49PM +0200, Herbert Poetzl wrote:
> hmm, always assumed that the 'which' command is
> part of every distro ... but hey, live and learn,
> maybe somebody has a workaround to avoid 'which'?

Since you're using bash, use the builtin command "type -p" maybe?

bash-2.05b$ type -p ls
/bin/ls
bash-2.05b$ type -p nosuchcmd
bash-2.05b$

-- 
rgds
Stephen
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Fri Oct 7 19:47:29 2005
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Fri 07 Oct 2005 - 19:47:31 BST by hypermail 2.1.8