Skip to content

STK engine flag incorrect + what is required for interactive mode in console? #262

@ChristopherRabotin

Description

@ChristopherRabotin

Describe the bug

In https://github.com/AnalyticalGraphicsInc/STKCodeExamples/tree/master/StkEngineContainerization/linux/stk-engine-baseline, the documentation says that the flag should be --nographics, but it's actually in camel case as --noGraphics.

# ./bin/stkruntime --help
Failed to load libX11.so.6 which is required to use graphics. Switching to noGraphics mode.
usage: stkruntime <Options>
STK Runtime gRPC Server

-portvalue, --grpcPort=value  gRPC Port number, default is 40704.
-hostvalue, --grpcHost=value  IP address or DNS hostname to start gRPC server,
                              default is 0.0.0.0. Use "localhost" to allow
                              external connections on the default IP.
-noGraphics, --noGraphics     Disable graphics (which are on, by default).
-h, --help                    Display help information.

Question
How can I pass a command to the stk console? If I use the --interactive flag (which is not documented in the engine, cf. the help message above), then the command returns immediately:

/opt/stk_engine_linux/stk12.9.0 # ./bin/stkruntime connectconsole --interactive --noGraphics
/opt/stk_engine_linux/stk12.9.0 #

If I don't specify it, STK engine starts ... and just hangs.

# ./bin/stkruntime connectconsole --noGraphics
STK Runtime gRPC Server listening on 0.0.0.0:40704

^C/opt/stk_engine_linux/stk12.9.0 #

Same behavior if I try to specify the STK connect command at the end:

# ./bin/stkruntime connectconsole --noGraphics "GetSTKVersion /"
STK Runtime gRPC Server listening on 0.0.0.0:40704
^C/opt/stk_engine_linux/stk12.9.0 #

To Reproduce
Install STK binaries v12.9.0 on a Linux system without X11.

Desktop (please complete the following information):
Linux ("Wolfie" minimalistic distribution for containers), STK 12.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions