Skip to Content.
Sympa Menu

grouper-dev - Re: [grouper-dev] GSH readline support on *NIX

Subject: Grouper Developers Forum

List archive

Re: [grouper-dev] GSH readline support on *NIX


Chronological Thread 
  • From: David Langenberg <>
  • To: Carl Waldbieser <>
  • Cc: Grouper Dev <>
  • Subject: Re: [grouper-dev] GSH readline support on *NIX
  • Date: Thu, 28 Aug 2014 22:21:00 -0600

Hi Carl,

Have you had a chance to look at the work Bill Thompson has done?  He has a neat little thing going (based on groovy) that has history + tab-completion.


Dave


On Thu, Aug 28, 2014 at 8:32 PM, Carl Waldbieser <> wrote:
I've just started experimenting with Grouper.  I used the Grouper installer and have started watching the various admin tutorials.

One thing I noticed right away is that the `gsh` shell seems to be a bit lacking in interactive mode.  There is no command history, nor can I use the arrow keys to move on the command line and make edits.

I am guessing something like rlwrap would work to add readline support to this command on man Linux environments.  The server I am testing on is RHEL6, and didn't have that package, so I put together a quick Python script that does the same thing.

I have attached the script as 'gsh_plus.py'.  You basically put it in the same folder as gsh and you run "$GROUPER_HOME/bin/gsh_plus.py" instead of gsh.  Almost magically, you will have command line history and the use of arrow keys (if your system Python has readline support).

It is a bit dodgy about overwriting the prompts if you scroll through the history to a blank line, but I find the benefits outweigh this issue, at least until gsh grows its own readline support (hopefully with tab-completion?).

Thanks,
Carl Waldbieser
System Programmer
Lafayette College




--
David Langenberg
Identity & Access Management
The University of Chicago



Archive powered by MHonArc 2.6.16.

Top of Page