Packages

object Shell extends LogSupport

Launch UNIX (or cygwin) commands from Scala

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

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. macro def debug(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  7. macro def debug(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  8. def env(key: String): Option[String]
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. macro def error(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  12. macro def error(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  13. def escape(s: String): String
  14. def exec(cmdLine: String): Int

    Launch a process then retrieves the exit code

  15. def execRemote(hostname: String, cmdLine: String): Int
  16. def findCommand(name: String): Option[String]
  17. def findJavaCommand(javaCmdName: String = "java"): Option[String]
  18. def findJavaHome: Option[String]
  19. def findSh: Option[String]
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def getCommand(name: String): String
  22. def getEnv: Map[String, String]
  23. def getExecPath: Array[String]
  24. def getProcessID(p: Process): Int

    Returns process id

    Returns process id

    returns

    process id or -1 if pid cannot be detected

  25. def getProcessIDOfCurrentJVM: Int

    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
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. macro def info(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  28. macro def info(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. def kill(pid: Int, signal: String = "TERM"): Int

    Kills the process

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

    Kill the process tree rooted from pid

    Kill the process tree rooted from pid

    returns

    exit code

  32. def launchCmdExe(cmdLine: String): Process
  33. def launchJava(args: String): Process
  34. def launchProcess(cmdLine: String): Process
  35. def launchRemoteDaemon(host: String, cmdLine: String): Unit

    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
    Attributes
    protected
    Definition Classes
    LoggingMethods
  37. lazy val logger: Logger
    Attributes
    protected[this]
    Definition Classes
    LazyLogger
  38. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  39. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  40. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. def prepareProcessBuilder(cmdLine: String, inheritIO: Boolean): ProcessBuilder
  42. def prepareProcessBuilderFromSeq(tokens: Seq[String], inheritIO: Boolean): ProcessBuilder
  43. def progName(p: String): String

    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
    Definition Classes
    AnyRef
  45. def sysProp(key: String): Option[String]
  46. def toString(): String
    Definition Classes
    AnyRef → Any
  47. macro def trace(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  48. macro def trace(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  49. def unescape(s: String): String
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  53. macro def warn(message: Any, cause: Throwable): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods
  54. macro def warn(message: Any): Unit
    Attributes
    protected
    Definition Classes
    LoggingMethods

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from LogSupport

Inherited from LazyLogger

Inherited from LoggingMethods

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped