[Gambas-user] Running programs from terminal and by double clicking.
Jussi Lahtinen
jussi.lahtinen at ...626...
Tue Jan 3 21:32:46 CET 2012
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.lahtinen at ...626...>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
>
>
More information about the User
mailing list