<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta content="text/html;charset=UTF-8" http-equiv="Content-Type"></head><body ><div style="font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt;"><div>Hi Samuel, <br></div><div><br></div><div>I think we could use this instead:<br></div><div><br></div><div>unix_w("Scilex --help 2>&1")<br></div><br><div data-zbluepencil-ignore="true" style="" class="zmail_extra"><br>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 :).<br><br>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. <br><br>Similar case happened to Linux.<br><br>Thanks.<br><br>Regards,<br>Chin Luh<br><br><br><br><div id="Zm-_Id_-Sgn1">---- On Wed, 30 Oct 2019 01:33:47 +0800 <b>Samuel Gougeon <<a target="_blank" href="mailto:sgougeon@free.fr">sgougeon@free.fr</a>></b> wrote ----<br></div><br><blockquote style="border-left: 1px solid rgb(204, 204, 204); padding-left: 6px; margin: 0px 0px 0px 5px;"><div><p>Hello,<br></p><p>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.<br> Noticeably, the "--help" one, that shows a list. From a cmd.exe
shell:</p><p><span class="size" style="font-size:undefinedpx"><span class="colour" style="color:#333333">>.\Scilab-6.0.2\bin\scilex
--help<br> Usage: Scilab <options><br> -e Instruction : execute the scilab instruction given
in Instruction argument.<br> -e and -f arguments are mutually
exclusive.<br> -f File : execute the scilab script given in
File argument.<br> -e and -f arguments are mutually
exclusive.<br> -quit : force scilab exit after execution of
script from -e or -f argument.<br> this flag is ignored if it is not
used with -e or -f argument.<br> -l lang : Change the language of scilab (
default : en_US ).<br> -nw : Enable console mode.<br> -nwni : Enable terminal mode.<br> -ns : Don't execute etc/scilab.start.<br> --help : Display this help.<br> -scihome <dir> : Force SCIHOME to <dir>.<br> Developer Trace arguments:<br> --parse-trace : Display bison state machine
evolution.<br> --AST-trace : Display ASCII-art AST to be human
readable.<br> --pretty-print : Display pretty-printed code, standard
Scilab syntax.<br> <br> Developer Timer arguments:<br> --AST-timed : Time each AST node.<br> --timed : Time global execution.<br> <br> Developer Debug arguments:<br> --no-exec : Only do Lexing/parsing do not execute
instructions.<br> --context-dump : Display context status.<br> --exec-verbose : Display command before running it.<br> --timeout delay : Kill the Scilab process after a
delay.</span></span></p><p>However, if i try to run this command from Scilab through a
unix_*() function, it returns nothing.<br> Nothing in the Scilab session, nothing in the consolebox...:</p><p><span class="size" style="font-size:undefinedpx"><span class="colour" style="color:#333333">-->
unix_w(WSCI+"\bin\scilex --help")<br> --> [re,s,e] = unix_g(SCI+"\bin\scilex --help")<br> e = <br> <br> s = <br> 0.<br> <br> re = <br> []</span></span></p><p>There is no space in my WSCI path.<br> This behavior looks like the <a target="_blank" href="http://bugzilla.scilab.org/show_bug.cgi?id=14143">bug
14143</a> reported for Linux, not confirmed for Windows, and
fixed in Scilab 6.0.2.<br> <br> Any confirmation or explanation would be welcome.<br> Regards<br> Samuel<br> <br> <span class="font" style="font-family:Arial"><br> <br> <br> <br></span></p><p><span class="font" style="font-family:Arial"><br></span></p><p><span class="font" style="font-family:Arial"></span><br></p></div>_______________________________________________<br>users mailing list <br><a target="_blank" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a> <br><a target="_blank" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a> <br></blockquote></div><div><br></div></div><br></body></html>