Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [pde-dev] How do I get the path of a program in $PATH

This is a list for the developers of PDE.

There is no platform independent way of searching for a system executable.

Either use system exec  "which xxx", or  do what which does with java logic that you write.

- henrik

3 dec 2010 kl. 07:34 skrev VSRao <venkat.eclipse@xxxxxxxxx>:

> 
> Hi,
> 
> I am developing a plugin. I am looking for a function which does exactly as
> the 'which <command>' do.
> Say for example I want to get the path of gcc. At shell prompt I can use
> 'which gcc' to get the path.
> How can I get the same inside a plugin ? Please help.
> 
> Thanks in advance,
> Subbarao
> -- 
> View this message in context: http://old.nabble.com/How-do-I-get-the-path-of-a-program-in-%24PATH-tp30365453p30365453.html
> Sent from the Eclipse PDE - General mailing list archive at Nabble.com.
> 
> _______________________________________________
> pde-dev mailing list
> pde-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/pde-dev


Back to the top