[Scilab-users] unix_w(WSCI+"\bin\scilex --help") returns nothing
Chin Luh Tan
chinluh.tan at bytecode-asia.com
Wed Oct 30 02:33:08 CET 2019
Hi Samuel,
I think we could use this instead:
unix_w("Scilex --help 2>&1")
As you mentioned, the "--help" is Scilab 6 dedicated "hardcoded" function, I am yet to look for where is it located from the source, if anyone find out, please share here :).
For some reason, the output message seems to have sent to stderr(2) instead of stdout(1), so we have to redirect it back to stdout for the unix_? to capture it.
Similar case happened to Linux.
Thanks.
Regards,
Chin Luh
---- On Wed, 30 Oct 2019 01:33:47 +0800 Samuel Gougeon <mailto:sgougeon at free.fr> wrote ----
Hello,
I have just discovered that, since Scilab 6.0.0, at least for
windows users (not tested on Linux), the scilex.exe scilab binary
file can be run with new undocumented options.
Noticeably, the "--help" one, that shows a list. From a cmd.exe
shell:
>.\Scilab-6.0.2\bin\scilex
--help
Usage: Scilab <options>
-e Instruction : execute the scilab instruction given
in Instruction argument.
-e and -f arguments are mutually
exclusive.
-f File : execute the scilab script given in
File argument.
-e and -f arguments are mutually
exclusive.
-quit : force scilab exit after execution of
script from -e or -f argument.
this flag is ignored if it is not
used with -e or -f argument.
-l lang : Change the language of scilab (
default : en_US ).
-nw : Enable console mode.
-nwni : Enable terminal mode.
-ns : Don't execute etc/scilab.start.
--help : Display this help.
-scihome <dir> : Force SCIHOME to <dir>.
Developer Trace arguments:
--parse-trace : Display bison state machine
evolution.
--AST-trace : Display ASCII-art AST to be human
readable.
--pretty-print : Display pretty-printed code, standard
Scilab syntax.
Developer Timer arguments:
--AST-timed : Time each AST node.
--timed : Time global execution.
Developer Debug arguments:
--no-exec : Only do Lexing/parsing do not execute
instructions.
--context-dump : Display context status.
--exec-verbose : Display command before running it.
--timeout delay : Kill the Scilab process after a
delay.
However, if i try to run this command from Scilab through a
unix_*() function, it returns nothing.
Nothing in the Scilab session, nothing in the consolebox...:
-->
unix_w(WSCI+"\bin\scilex --help")
--> [re,s,e] = unix_g(SCI+"\bin\scilex --help")
e =
s =
0.
re =
[]
There is no space in my WSCI path.
This behavior looks like the http://bugzilla.scilab.org/show_bug.cgi?id=14143 reported for Linux, not confirmed for Windows, and
fixed in Scilab 6.0.2.
Any confirmation or explanation would be welcome.
Regards
Samuel
_______________________________________________
users mailing list
mailto:users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20191030/7ed8883f/attachment.htm>
More information about the users
mailing list