- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
scala-ssh-shell
To those who've asked about having an embedded shell accessible via
telnet or ssh, here's a start:
https://github.com/peak6/scala-ssh-shell
It's the same shell you get when you run "scala" with the same
features and limitations. The easiest way to access your live objects
is to register them on a global "object" singleton and import that.
As it ties directly into the compiler it only works for 2.9.1. Needs
sbt 0.7 to build.
Enjoy!
sRp










Re: scala-ssh-shell
Is it powershell-like ?Can we build a Powershell with scala?
Re: Re: scala-ssh-shell
That said, scala would be an excellent choice of language to build powershell-like functionality into. With the ability to define operators, and the implicits, one should be able to make a pretty nice os shell.
sRp
On Sun, Oct 9, 2011 at 3:14 AM, IL <iron9light [at] gmail [dot] com> wrote:
Re: scala-ssh-shell
srparish wrote: Looks nice. How do I bind names to objects so that I can access them from within the shell?
Re: scala-ssh-shell
val sshd = new ScalaSshShell(port=4444, name="test", user="user", passwd="fluke", keysResourcePath=Some("/test.ssh.keys"), IndexedSeq( ("pi", "Double", 3.1415926), ("nums", "IndexedSeq[Int]", Vector(1,2,3,4,5))))
$ ssh -l user -p 4444 localhostuser@localhost's password: Connected to test, starting repl... Welcome to Scala version 2.9.1.r0-b20110831114755 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0).Type in expressions to have them evaluated.Type :help for more information.test> pi/2 res0: Double = 1.5707963test> nums sumres1: Int = 15
On Sun, Oct 9, 2011 at 3:01 AM, Ittay Dror <ittay [dot] dror [at] gmail [dot] com> wrote: