Experimenting more with this... and apparently I have not used "For Input" in any other of my projects. Since also this fails: hProcess = Exec ["echo", "hello?"] For Input As "Process"
So, child program does *not* have to be written with gambas. That was my hasty conclusion. Jussi On Mon, Jan 2, 2012 at 22:09, Jussi Lahtinen <jussi.lahti...@gmail.com>wrote: > > Exec ["gbr3" ... ] will search for gbr3 in the PATH environment >> variable. Maybe you don't have the same PATH when you run a command from >> a terminal, and when you run it by "double-clicking" on an icon? Note >> that if PATH is not defined, the program is searched in /usr and /usr/bin. >> > > In my system gbr3 is in /usr/local/bin/, and if it is searched only in > /usr and /usr/bin, then it really is missing... > > But: > $ echo $PATH > > /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games > > And I copied gbr3 to /usr/bin but result is same. > > Also the problem is gone if I change: > > hProcess = Exec ["gbr3", sTmp] For Input As "Process" > To: > hProcess = Exec ["gbr3", sTmp] As "Process" > > > Any ideas? > > > Jussi > > ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user