[Public TC] bash: which: command not found

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Public TC] bash: which: command not found

Artem Shutak
Hi, Sergey,

I've found 'which' command cannot be found on public TC agents:
http://204.14.53.152/repository/download/Ignite_IgniteStartNodes/47865:id/ignite-startNodes.zip%21/05-05-2015--08-03-11-237aeb53.log
.

What linux installed on agents? Can we just install which on them?

-- Artem --
Reply | Threaded
Open this post in threaded view
|

Re: [Public TC] bash: which: command not found

Branko Čibej
On 05.05.2015 18:26, Artiom Shutak wrote:
> Hi, Sergey,
>
> I've found 'which' command cannot be found on public TC agents:
> http://204.14.53.152/repository/download/Ignite_IgniteStartNodes/47865:id/ignite-startNodes.zip%21/05-05-2015--08-03-11-237aeb53.log
> .
>
> What linux installed on agents? Can we just install which on them?

Use 'type', not 'which'.

-- Brane

Reply | Threaded
Open this post in threaded view
|

Re: [Public TC] bash: which: command not found

Konstantin Boudnik-2
In reply to this post by Artem Shutak
I think 'which' an older stand-alone way of finding commands in your path. In
modern shells like bash you can use 'type'. Be aware about output format
differences. 'type -p command-name' will do the same as 'which command-name'.

On debian Linuxes 'which' comes in debianutils package and that one is a part
of the core. CentOS I am sure is different and that's why I don't use it ;)

Cos

On Tue, May 05, 2015 at 07:26PM, Artiom Shutak wrote:
> Hi, Sergey,
>
> I've found 'which' command cannot be found on public TC agents:
> http://204.14.53.152/repository/download/Ignite_IgniteStartNodes/47865:id/ignite-startNodes.zip%21/05-05-2015--08-03-11-237aeb53.log
> .
>
> What linux installed on agents? Can we just install which on them?
>
> -- Artem --