[Scilab-users] the name of a script

Jan Åge Langeland j-lan at online.no
Wed Mar 16 16:46:58 CET 2016



On 16.03.2016 15:59, fujimoto2005 wrote:
> Hi,all
>
> I executed the script with the execute command of the scinote so it failed.
> I want to use the execute command of the scinote.
>
> I tried
> [units,typs,nams]=file().
>
> But nams are as follows
>
> stderr
> !
> !
> !
> !C:\***\gettingScriptName02.sce  !
> !
> !
> !stdin
> !
> !
> !
> !stdout
> !
>
file() is clearly better than my suggestion.
nams is different in Scilab 5 and Scilab 6 and maybe vary with OS also, 
but since you know a bit about the script name you should be able to 
find it with grep:

nams(max(grep(nams,'getting')))

Jan Å





More information about the users mailing list