Object

wvlet.airframe.control

Shell

Related Doc: package control

Permalink

object Shell extends LogSupport

Launch UNIX (or cygwin) commands from Scala

Linear Supertypes
LogSupport, LazyLogger, LoggingMethods, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Shell
  2. LogSupport
  3. LazyLogger
  4. LoggingMethods
  5. Serializable
  6. Serializable
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate() @throws( ... )
  6. macro def debug(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  7. macro def debug(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  8. def env(key: String): Option[String]

    Permalink
  9. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  11. macro def error(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  12. macro def error(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  13. def escape(s: String): String

    Permalink
  14. def exec(cmdLine: String): Int

    Permalink

    Launch a process then retrieves the exit code

  15. def execRemote(hostname: String, cmdLine: String): Int

    Permalink
  16. def findCommand(name: String): Option[String]

    Permalink
  17. def findJavaCommand(javaCmdName: String = "java"): Option[String]

    Permalink
  18. def findJavaHome: Option[String]

    Permalink
  19. def findSh: Option[String]

    Permalink
  20. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  21. def getCommand(name: String): String

    Permalink
  22. def getEnv: Map[String, String]

    Permalink
  23. def getExecPath: Array[String]

    Permalink
  24. def getProcessID(p: Process): Int

    Permalink

    Returns process id

    Returns process id

    returns

    process id or -1 if pid cannot be detected

  25. def getProcessIDOfCurrentJVM: Int

    Permalink

    Return the process ID of the current JVM.

    Return the process ID of the current JVM.

    returns

    process id or -1 when process ID is not found.

  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  27. macro def info(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  28. macro def info(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  29. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  30. def kill(pid: Int, signal: String = "TERM"): Int

    Permalink

    Kills the process

  31. def killTree(pid: Int, signal: String = "TERM"): Int

    Permalink

    Kill the process tree rooted from pid

    Kill the process tree rooted from pid

    returns

    exit code

  32. def launchCmdExe(cmdLine: String): Process

    Permalink
  33. def launchJava(args: String): Process

    Permalink
  34. def launchProcess(cmdLine: String): Process

    Permalink
  35. def launchRemoteDaemon(host: String, cmdLine: String): Unit

    Permalink

    launch a command in the remote host.

    launch a command in the remote host. The target host needs to be accessed via ssh command without password.

  36. macro def logAt(logLevel: LogLevel, message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  37. lazy val logger: Logger

    Permalink
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  38. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  39. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  41. def prepareProcessBuilder(cmdLine: String, inheritIO: Boolean): ProcessBuilder

    Permalink
  42. def prepareProcessBuilderFromSeq(tokens: Seq[String], inheritIO: Boolean): ProcessBuilder

    Permalink
  43. def progName(p: String): String

    Permalink

    Return OS-dependent program name.

    Return OS-dependent program name. (e.g., sh in Unix, sh.exe in Windows)

  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def sysProp(key: String): Option[String]

    Permalink
  46. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  47. macro def trace(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  48. macro def trace(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  49. def unescape(s: String): String

    Permalink
  50. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  51. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. macro def warn(message: Any, cause: Throwable): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods
  54. macro def warn(message: Any): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    LoggingMethods

Deprecated Value Members

  1. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @Deprecated @deprecated @throws( classOf[java.lang.Throwable] )
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped