[Scilab-Dev] New module

Sylvestre Ledru sylvestre.ledru at scilab.org
Sat Oct 2 11:29:13 CEST 2010


Hello,

Sorry for the lag.

Le samedi 07 août 2010 à 15:05 -0700, Federico Bergero a écrit :
> Hi, I'm developing a new Scilab module named BackDoor.
> The BackDoor module opens a backdoor to scilab workspace. When loaded,
> the module creates a new thread that listens on a TCP port and
> receives commands, and sends them to the scilab workspace.
> It can be use to access and modify the workspace variables of a
> running instance of scilab from ANOTHER PROCESS. Of course it's a
> security risk, but one should load this module if it's in a safe
> environment.
Sounds good!

> I'm having some troubles with two major problems and any help will be
> appreciated
> * When sending commands to Scilab through SendScilabJob, the ans
> variable does not get assigned to the result of the command.
I think it is probably the case because SendScilabJob is launching your
command into an execstr. See [1].
You should assign the result into your own variable...

> * The module (as it creates another thread) is not thread safe with
> the GUI, and it can lead to a freeze of Scilab
Well, it is an issue of Scilab 5. The release 6 should be (much more) thread safe.

Cheers,
Sylvestre

> Thanks in advance
> Fede
[1]
http://cgit.scilab.org/scilab/tree/scilab/modules/call_scilab/src/c/SendScilabJobs.c#n41

-- 
-------------------------
Sylvestre Ledru
-------------------------
The Scilab Consortium
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex
France




More information about the dev mailing list