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 ------------------------------------------------------------------------------ Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user