Thursday, April 12, 2012

JASSH (JAnalyseSSH) 0.7.3 released

JASSH is a high level scala SSH API for easy and fast operations on remote servers. ( ** project page **)

Latest changes :
  • JSCH updated to release 0.1.47
  • SSHOptions now contains an extra field "name" which allow user to friendly identify a remote ssh system
  • SSHOptions password type is now of SSHPassword type instead of String. Implicit conversions are provided from String, Option[String]
  • SSHShell batch method renamed to execute

hello scala script

exec java -jar jassh.jar -nocompdaemon -usejavacp -savecompiled "$0" "$@"

print("localhost", "test", "testtest") {_ execute "echo Hello `hostname`" } )

remote vmstat scala script

exec java -jar jassh.jar -nocompdaemon -usejavacp -savecompiled "$0" "$@"

jassh.SSH.once("localhost", "test", "testtest")  {"vmstat 1 10", println(_.getOrElse("")).waitForEnd


No comments:

Post a Comment