[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Custom CLI

Jesper Andersen

3/14/2007 10:59:00 AM

I have to create an interface to allow several users to perform various
tasks over ssh. The users will have different permissions.

I want to create a custom shell/CLI to be set as the users shell when they
log in. The interface should have scroll back, command line editing and
history like a normal shell. The commands would be custom commands, i.e.
no relation to system commands.
Is there any library, framework or something to make this easy with ruby?

--
Jesper
17:35:13 up 3 days, 20:32, 10 users, load average: 0.84, 1.21, 1.10

2 Answers

Tim Becker

3/14/2007 11:13:00 AM

0

`readline` is part of the stdlib. It's not documented in rdoc, but
more or less trivial to use once you've looked at the examples in the
distribution.
-Tim

On 3/14/07, Jesper Andersen <iiLi58in@j-f.dk> wrote:
> I have to create an interface to allow several users to perform various
> tasks over ssh. The users will have different permissions.
>
> I want to create a custom shell/CLI to be set as the users shell when they
> log in. The interface should have scroll back, command line editing and
> history like a normal shell. The commands would be custom commands, i.e.
> no relation to system commands.
> Is there any library, framework or something to make this easy with ruby?
>
> --
> Jesper
> 17:35:13 up 3 days, 20:32, 10 users, load average: 0.84, 1.21, 1.10
>
>

Ara.T.Howard

3/14/2007 1:55:00 PM

0