Skip to content

Commit 5aa60ad

Browse files
committed
describe how to use included example
1 parent ba9230d commit 5aa60ad

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,24 @@ done from a scala shell:
2828
scala> peak6.util.ScalaSshShell.generateKey("src/main/resources/test.ssh.keys")
2929

3030
Note that the shell does not work when running under sbt's console.
31+
32+
To run the included example, run the following with sbt 0.7:
33+
34+
$ sbt update
35+
$ sbt compile
36+
$ sbt package
37+
$ scala -cp './lib_managed/scala_2.9.1/compile/*:./target/scala_2.9.1/scala-ssh-shell_2.9.1-0.1.jar' peak6.util.ScalaSshShell
38+
39+
Now you can ssh in from a separate window, using "fluke" for the
40+
password:
41+
42+
$ ssh -l user -p 4444 localhost
43+
user@localhost's password:
44+
Connected to test, starting repl...
45+
Welcome to Scala version 2.9.1.r0-b20110831114755 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0).
46+
Type in expressions to have them evaluated.
47+
Type :help for more information.
48+
test> 1 to 10 sum
49+
res0: Int = 55
50+
test> println("Hello World!")
51+
Hello World!

0 commit comments

Comments
 (0)