[scilab-Users] Batch mode

jasper van baten jasper at amsterchem.com
Mon Nov 14 12:13:19 CET 2011


Use

errcatch(-1,'stop')

Best wishes,

Jasper.

On 11/14/2011 12:08, Romain wrote:
> For instance when a lanch a script with an error, I get:
>> [reuillon at zebulon coin]$ ~/tmp/scilab-5.3.3/bin/scilab -nw -nogui -f 
>> Simul1.sci
>> java.lang.reflect.InvocationTargetException
>>         ___________________________________________
>>                         scilab-5.3.3
>>
>>                 Consortium Scilab (DIGITEO)
>>               Copyright (c) 1989-2011 (INRIA)
>>               Copyright (c) 1989-2007 (ENPC)
>>         ___________________________________________
>>
>>
>> Startup execution:
>>   loading initial environment
>> ee;
>>   !--error 4
>> Undefined variable: ee
>>
>> at line      26 of exec file called by :
>> exec('SCI/etc/scilab.start',-1);;exec('Simul1.sci',-1)
>>
>>
>> -->
> At the end, it displays a prompt and waits for the user to input 
> something. The behaviour is similar with the -nwni option.
>
> Romain
>
> Le 14/11/2011 12:03, Adrien Vogt-Schilb a écrit :
>> Hi
>>
>> Do you have some command line prompting for user input, like "input" ?
>>
>> On 14/11/2011 12:01, Romain wrote:
>>> Hi guys,
>>>
>>> I work on a software for distributed executions of simulation models 
>>> (www.openmole.org). Some of our users are using scilab. In order to 
>>> execute scilab on a computing grid we need to execute it in batch 
>>> mode. I have tryed the option "-nw -nogui" and "-nwi" however when 
>>> an error occurs durring the execution of the scilab script, scilab 
>>> doesn't stop and is waiting for the user to react. Is there anyway 
>>> of switching to a real batch mode where no interaction is ever 
>>> requiered?
>>>
>>> Cheers,
>>> Romain Reuillon
>>>
>>
>>
>> -- 
>> Adrien Vogt-Schilb (Cired)
>> Tel: (+33) 1 43 94 *73 77*
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20111114/4e6a743c/attachment.htm>


More information about the users mailing list