Hi! If the only thing you want to do is test if a given binary is present on any of the $PATH folders, you can use the CheckProgram function used on the Prooject.module file of the IDE source code.
It returns false if present, true if missing. Hope it helps! -----Original Message----- From: Willy Raets <[email protected]> Date: Fri, 13 Apr 2012 18:05:49 To: Benoît Minisini<[email protected]> Reply-To: [email protected], mailing list for gambas users <[email protected]> Cc: mailing list for gambas users<[email protected]> Subject: Re: [Gambas-user] Gambas 3.1 and Exec (Bug or NOT?) > The bug was in Gambas 3.0. Now, in Gambas 3.1, if you try to run a > program that does not exist, you get an error. > > Normally you should get that error message: > > "Cannot run child process: cannot exec program: Resource temporarily > unavailable in SysInfo:11" > > I don't really understand why you get "Success" instead. > > Regards, > Hi, Okay, so instead of executing command to a string and testing for length of returned string, I now use Try Exec[] to string and that seems to the job. But now on closing the application gbx3 is not closed. Some process seems to prevent the application from correctly closing. The form closed but that's all. Project attached [System] OperatingSystem=Linux Kernel=2.6.35-32-generic Architecture=i686 Memory=2051620 kB DistributionVendor=Ubuntu DistributionRelease="Ubuntu 10.10" Desktop=Gnome [Gambas 2] Version=2.24.0 Path=/usr/bin/gbx2 [Gambas 3] Version=3.1.0 Path=/usr/bin/gbx3 [Libraries] Qt4=libQtCore.so.4.7.0 GTK+=libgtk-x11-2.0.so.0.2200.0 ------------------------------------------------------------------------------ For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 _______________________________________________ Gambas-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/gambas-user
