>> file argument.sceargs= sciargs(); for argc= 1:size(args,2) do printf("%d %s\n", argc, args(argc)); endexitThen you can run it from console liek:
$ scilab-cli -f argument.sce -args 1 a b $ scilab-adv-cli -f argument.sce -args 1 a b The output:
1 /usr/bin/scilab-cli-bin 2 -f 3 wa.sce 4 -args 5 1 6 a 7 bKnowing the argument sequence can be a bit of guesswork if the way you pass argument is inconsistent between runs, though.
0 rants:
Post a Comment