This helps, thanks a lot!

Lazar

-----Original Message-----
From: Derek Baum [mailto:[email protected]] 
Sent: Thursday, April 21, 2011 4:24 PM
To: [email protected]
Subject: Re: Gogo shell on standard input/output streams

Either use the  --nointeractive flag:

$ java -Dgosh.args=--nointeractive -jar bin/felix.jar

or specify an alternative to an interactive session using the -c flag:

$ java -Dgosh.args='-sc telnetd -p1234 start' -jar bin/felix.jar
telnetd is running on 127.0.0.1:1234


$ java -Dgosh.args=--help -jar bin/felix.jar
gosh - execute script with arguments in a new session
  args are available as session variables $1..$9 and $args.
Usage: gosh [OPTIONS] [script-file [args..]]
  -c --command             pass all remaining args to sub-shell
     --nointeractive       don't start interactive session
     --login               login shell (same session, reads
etc/gosh_profile)
  -s --noshutdown          don't shutdown framework when script completes
  -x --xtrace              echo commands before execution
  -? --help                show help
If no script-file, an interactive shell is started, type $D to exit.


Derek


On 21 April 2011 14:10, Kirchev, Lazar <[email protected]> wrote:

> Hello,
>
> Is it possible to start the Gogo shell without opening a session on the
> standard input/output? I want to have Gogo running and connect to it only
> through telnet. I have a bundle providing a command to achieve this, but
> when I start the shell bundle, it always creates in its activator a session
> on the standard streams. Not starting the shell bundle is not an option - it
> registers several command providers, which are important and should be
> registered.
>
> Thanks and regards,
> Lazar
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to