All Downloads are FREE. Search and download functionalities are using the official Maven repository.

gridscale.local.LocalExecExample.scala Maven / Gradle / Ivy

There is a newer version: 2.49
Show newest version
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