Command Line switches under WIndows e.g. glue /keepRunning ..\samples\net\httpserver.js

8 views
Skip to first unread message

PaulANormanNZ

unread,
Sep 29, 2011, 6:21:34 AM9/29/11
to glues...@googlegroups.com
Hi,

With    samples\net\httpserver.js I thought I would able to view the output with http://localhost:50001 in a browser.

I got caught with trying this under Windows Xp:

G:\LaTeXPortable\LatexUtils\glue\bin>glue /keepRunning ..\samples\net\httpserver.js
glue.log.level = warning
File not found: G:\LaTeXPortable\LatexUtils\glue\bin\keepRunning

Even though the help says use /keepRunning you seem to need to do this to even get the command line help..

glue --help

But it displays switches being preceded not by -- but / 

usage: glue OPTIONS
glue is a JavaScript interpreter based on the SpiderMonkey engine.

/contextSize=size          sets the context size of the JavaScript
                           interpreter.
/branchlimit=limit         sets the branchlimit of the JavaScript interpreter.
/runtimesize=size          sets the runtime size of the JavaScript
                           interpreter.
/encoding=value            sets the encoding of the script file.
/loglevel=level            sets the level of the logger.
/logchannel=channel        sets the channel of the logger.
/registerService           Register the application as a service.
/unregisterService         Unregister the application as a service.
/displayName=name          Specify a display name for the service (only with
                           /registerService).
/startup=automatic|manual  Specify the startup mode for the service (only with
                           /registerService).
/help                      displays help information on command line
                           arguments.
/version                   shows the version of GLUEscript.
/keepRunning               Keep running until Ctrl-Break is pressed.

But you really actually have to use -- instead of the / forward slash normally expected on windows.

So...

glue /keepRunning ..\samples\net\httpserver.js

Does not work, but ...

glue --keepRunning ..\samples\net\httpserver.js

Is the correct thing, and works really well in the browser, and the server is stopped by Crtl C

Thanks,

Paul



Franky Braem

unread,
Sep 29, 2011, 4:48:30 PM9/29/11
to GLUEscript
Solved in 0.2.0 branch

Franky

On 29 sep, 12:21, PaulANormanNZ <paul.a.nor...@gmail.com> wrote:
> Hi,
>
> With    samples\net\httpserver.js I thought I would able to view the output
> withhttp://localhost:50001in a browser.
>
> I got caught with trying this under Windows Xp:
>
> G:\LaTeXPortable\LatexUtils\glue\bin>glue */*keepRunning
> ..\samples\net\httpserver.js
> glue.log.level = warning
> File not found: G:\LaTeXPortable\LatexUtils\glue\bin\keepRunning
>
> Even though the help says use /keepRunning you seem to need to do this to
> even get the command line help..
>
> glue --help
>
> But it displays switches being preceded not by *--* but* /*
>
> usage: glue OPTIONS
> glue is a JavaScript interpreter based on the SpiderMonkey engine.
>
> /contextSize=size          sets the context size of the JavaScript
>                            interpreter.
> /branchlimit=limit         sets the branchlimit of the JavaScript
> interpreter.
> /runtimesize=size          sets the runtime size of the JavaScript
>                            interpreter.
> /encoding=value            sets the encoding of the script file.
> /loglevel=level            sets the level of the logger.
> /logchannel=channel        sets the channel of the logger.
> /registerService           Register the application as a service.
> /unregisterService         Unregister the application as a service.
> /displayName=name          Specify a display name for the service (only with
>                            /registerService).
> /startup=automatic|manual  Specify the startup mode for the service (only
> with
>                            /registerService).
> /help                      displays help information on command line
>                            arguments.
> /version                   shows the version of GLUEscript.
> /keepRunning               Keep running until Ctrl-Break is pressed.
>
> But you really actually have to use *-- *instead of the / forward
Reply all
Reply to author
Forward
0 new messages