You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by Raymond Auge <ra...@liferay.com> on 2013/01/23 23:58:50 UTC
gogo persistent subshell support
Can anyone tell me if gogo supports or could be extended (by plugin) to
support persistent subshells?
By persistent subshell I mean like within a gogo session opening a
beanshell, rhino shell, crash shell, etc. and having the subshell remain
open until exited (which would return to gogo).
Thank you
--
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
<http://twitter.com/#!/rotty3000> | Senior Software Architect | *Liferay,
Inc.* <http://www.liferay.com> <https://twitter.com/#!/liferay>
---
24-25 October 2012 |* Liferay **Spain Symposium* |
liferay.com/spain2012<http://www.liferay.com/spain2012>
16 November 2012 |* Liferay **Italy Symposium* |
liferay.com/italy2012<http://www.liferay.com/italy2012>
Re: gogo persistent subshell support
Posted by Raymond Auge <ra...@liferay.com>.
Excelent, Thank you!
On Wed, Jan 23, 2013 at 6:17 PM, Derek Baum <de...@baums.org.uk> wrote:
> gogo supports subshells of itself using the 'gosh' command; you'd have to
> add new commands to add shells for other languages.
>
> The following shows sub-shells using 'gosh':
>
> Welcome to Apache Felix Gogo
>
> g! *prompt = 'gogo! ' // change prompt to identify session*
> gogo!
> gogo! *set// list session variables*
> null 0 null
> String SCOPE gogo:*
> String _ gogo!
> Closure e $exception printStackTrace
> String prompt gogo!
>
> gogo! *gosh --help*
> 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.
> gogo!
> gogo! *gosh*
> g! *set*
> String SCOPE gogo:*
> g! *^D*
> gogo! *^D*
> gogo! gosh: stopping framework
>
>
> On 23 January 2013 22:58, Raymond Auge <ra...@liferay.com> wrote:
>
> > Can anyone tell me if gogo supports or could be extended (by plugin) to
> > support persistent subshells?
> >
> > By persistent subshell I mean like within a gogo session opening a
> > beanshell, rhino shell, crash shell, etc. and having the subshell remain
> > open until exited (which would return to gogo).
> >
> > Thank you
> > --
> > *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> > <http://twitter.com/#!/rotty3000> | Senior Software Architect |
> *Liferay,
> > Inc.* <http://www.liferay.com> <https://twitter.com/#!/liferay>
> >
> > ---
> >
> > 24-25 October 2012 |* Liferay **Spain Symposium* |
> > liferay.com/spain2012<http://www.liferay.com/spain2012>
> >
> > 16 November 2012 |* Liferay **Italy Symposium* |
> > liferay.com/italy2012<http://www.liferay.com/italy2012>
> >
>
--
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
<http://twitter.com/#!/rotty3000> | Senior Software Architect | *Liferay,
Inc.* <http://www.liferay.com> <https://twitter.com/#!/liferay>
---
24-25 October 2012 |* Liferay **Spain Symposium* |
liferay.com/spain2012<http://www.liferay.com/spain2012>
16 November 2012 |* Liferay **Italy Symposium* |
liferay.com/italy2012<http://www.liferay.com/italy2012>
Re: gogo persistent subshell support
Posted by Derek Baum <de...@baums.org.uk>.
gogo supports subshells of itself using the 'gosh' command; you'd have to
add new commands to add shells for other languages.
The following shows sub-shells using 'gosh':
Welcome to Apache Felix Gogo
g! *prompt = 'gogo! ' // change prompt to identify session*
gogo!
gogo! *set// list session variables*
null 0 null
String SCOPE gogo:*
String _ gogo!
Closure e $exception printStackTrace
String prompt gogo!
gogo! *gosh --help*
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.
gogo!
gogo! *gosh*
g! *set*
String SCOPE gogo:*
g! *^D*
gogo! *^D*
gogo! gosh: stopping framework
On 23 January 2013 22:58, Raymond Auge <ra...@liferay.com> wrote:
> Can anyone tell me if gogo supports or could be extended (by plugin) to
> support persistent subshells?
>
> By persistent subshell I mean like within a gogo session opening a
> beanshell, rhino shell, crash shell, etc. and having the subshell remain
> open until exited (which would return to gogo).
>
> Thank you
> --
> *Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
> <http://twitter.com/#!/rotty3000> | Senior Software Architect | *Liferay,
> Inc.* <http://www.liferay.com> <https://twitter.com/#!/liferay>
>
> ---
>
> 24-25 October 2012 |* Liferay **Spain Symposium* |
> liferay.com/spain2012<http://www.liferay.com/spain2012>
>
> 16 November 2012 |* Liferay **Italy Symposium* |
> liferay.com/italy2012<http://www.liferay.com/italy2012>
>