You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Kirchev, Lazar" <l....@sap.com> on 2011/04/21 15:10:32 UTC

Gogo shell on standard input/output streams

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

RE: Gogo shell on standard input/output streams

Posted by "Kirchev, Lazar" <l....@sap.com>.
This helps, thanks a lot!

Lazar

-----Original Message-----
From: Derek Baum [mailto:derek.baum@paremus.com] 
Sent: Thursday, April 21, 2011 4:24 PM
To: users@felix.apache.org
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 <l....@sap.com> 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: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Gogo shell on standard input/output streams

Posted by Derek Baum <de...@paremus.com>.
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 <l....@sap.com> 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
>

Re: Gogo shell on standard input/output streams

Posted by Martin Ždila <m....@gmail.com>.
Hi Lazar

Add -Dgosh.args=--nointeractive JVM argument.

Best regards

On Thu, Apr 21, 2011 at 3:10 PM, Kirchev, Lazar <l....@sap.com> 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
>



-- 
Ing. Martin Ždila
tel:+421-908-363-848
mailto:martin@zdila.sk
http://www.zdila.sk/