felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Derek Baum <de...@baums.org.uk>
Subject Re: gogo persistent subshell support
Date Wed, 23 Jan 2013 23:17:07 GMT
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! *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
  -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! *gosh*
g! *set*
String          SCOPE           gogo:*
g! *^D*
gogo! *^D*
gogo! gosh: stopping framework

On 23 January 2013 22:58, Raymond Auge <raymond.auge@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>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message