[Scilab-users] Executing scilab-scripts automatically

Serge Steer Serge.Steer at inria.fr
Mon Aug 19 09:53:44 CEST 2013


May be something like
for k=1:n
   exec(msprintf("%d/script.sce",k))
end
answers your need

Serge Steer
INRIA
Le 16/08/2013 17:28, bruschino a écrit :
> Hi everyone,
>
> I have a number of folders, called 1, 2, 3, 4 and so on. In every folder,
> there is a scilab script. This scilab script produces some text files as
> output, which I need. Since I have a lot of folders (>1000), I don't want to
> run the scripts in every folder manually. This is why is was wondering if I
> can write a simple command in scilab (something like exec(...)), with which
> the script in every folder is executed automatically.
>
> I am sure it should work with for loops, but how do I pass the loop-variable
> to the exec-command?
>
> I would appreciate your help very much! Thanks in advance.
>
> Best wishes,
> bruschino
>
>
>
> --
> View this message in context: http://mailinglists.scilab.org/Executing-scilab-scripts-automatically-tp4027240.html
> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>




More information about the users mailing list