[scilab-Users] Batch mode

jasper van baten jasper at amsterchem.com
Mon Nov 14 12:23:44 CET 2011


You could run the script inside another script, using exec. This also 
gives you control over the error level.  You could do this from the 
command line using the -e option. You can also use the -e option to call 
errcatch.

Best wishes,

Jasper.



On 11/14/2011 12:18, Romain wrote:
> It works, thank you for your reactivity.
>
> Nevertheless, I think that being able to set this beaviour from the 
> command line without having to modify the script would be a great 
> functionnality for distributed execution of scilab.
>
> Cheers,
> Rom
>
> Le 14/11/2011 12:13, jasper van baten a écrit :
>> 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/b8c60aa2/attachment.htm>


More information about the users mailing list