[Gambas-user] how to 'which' with gambas

Stefano Palmeri stefanopalmeri at ...152...
Fri Aug 11 01:48:03 CEST 2006


 
Hi, all.

Is there a native function in Gambas that checks
if a program exists in the user $PATH?

I currently do something like:

SHELL "which the_program &> /dev/null; echo $?" TO sShellout

and then I check sShellout.

Thanks.

Regards,

Stefano Palmeri

 




More information about the User mailing list