gridscale.local.LocalExecExample.scala Maven / Gradle / Ivy
package gridscale.local
import gridscale.effectaside._
import gridscale.cluster.LocalCluster
object LocalExecExample extends App {
val headNode = LocalHost()
val jobDescription = "cd /tmp && cat /etc/passwd"
def res(implicit system: Effect[System], local: Effect[Local]) = {
execute(jobDescription)
}
LocalCluster { intp ⇒
import intp._
println(res)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy