[Gambas-user] watch+fclock = Error opening terminal: unknown.

Benoît Minisini gambas at ...1...
Fri Apr 5 22:59:03 CEST 2013


Le 05/04/2013 22:37, Willy Raets a écrit :
> On Fri, 2013-04-05 at 12:37 -0700, abbat81 wrote:
>> Hallo!
>>
>> In LXterminal I can execute successfully next command:
>>
>> "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas"
>>
>> But I can't do it in Gambas.
>>
>> Shell "watch flock -n /home/user/Shell.lock /home/user/Onix_Shell.gambas"
>>
>> gives me: "Error opening terminal: unknown."
>>
>> Is there any other way to execute that command?
>>
>> Thanks
>
> You could give Exec a try:
>
> Exec ["watch", "flock", "-n", "/home/user/Shell.lock",
> "home/user/Onix_Shell.gambas"]
>

Beware that if your command needs a terminal, you have to use "For Input 
/ Output" in the Exec or Shell syntax.

Regards,

-- 
Benoît Minisini




More information about the User mailing list