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

From: Herbert Poetzl <herbert_at_13thfloor.at>
Date: Sat 08 Oct 2005 - 03:24:44 BST
Message-ID: <20051008022444.GC27808@MAIL.13thfloor.at>

On Fri, Oct 07, 2005 at 02:47:01PM -0400, Stephen Harris wrote:
> 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?

ah, thanks! didn't know this existed :)
will try and read up on that ...

thanks!
Herbert

> 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
_______________________________________________
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
Received on Sat Oct 8 03:25:04 2005

[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Sat 08 Oct 2005 - 03:25:08 BST by hypermail 2.1.8