[Gambas-user] Gambas performances

Benoît Minisini gambas at ...1...
Mon Aug 17 22:30:50 CEST 2009


> I tried the both solutions: SHELL and EXEC, but the parameters used
> are not the same for each command executed.
>
> So, after many tries, I the EXEC command give me errors during
> execution because it's very difficult to play with the character " or
> ' in the command.

You just have to replace:

SHELL "command " & Quote.Shell(arg1) & " " & Quote.Shell(arg2) ...

By:

EXEC [ "/usr/bin/command", arg1, arg2, ... ] ...

I strongly suggest that you do replace SHELL by EXEC. I almost sure that the 
bottleneck is there! But I may be wrong.

-- 
Benoît




More information about the User mailing list