xerial.core.util

Shell

object Shell extends Logger

Launch UNIX (or cygwin) commands from Scala

Linear Supertypes
Logger, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Shell
  2. Logger
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def debug(message: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logger
  9. def env(key: String): Option[String]

  10. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  12. def error(message: ⇒ Any): Unit

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

  14. def exec(cmdLine: String): Int

    Launch a process then retrieves the exit code

    Launch a process then retrieves the exit code

    cmdLine
    returns

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

  16. def fatal(message: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logger
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def findCommand(name: String): Option[String]

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

  20. def findJavaHome: Option[String]

  21. def findSh: Option[String]

  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def getCommand(name: String): String

  24. def getEnv: Map[String, String]

  25. def getExecPath: Array[String]

  26. def getLogger(tag: String): LogWriter

    Create a sub logger with a given tag name

    Create a sub logger with a given tag name

    tag
    returns

    Attributes
    protected
    Definition Classes
    Logger
  27. def getLogger(tag: Symbol): LogWriter

    Create a sub logger with a given tag name

    Create a sub logger with a given tag name

    tag
    returns

    Attributes
    protected
    Definition Classes
    Logger
  28. def getProcessID(p: Process): Int

    Returns process id

    Returns process id

    p
    returns

    process id or -1 if pid cannot be detected

  29. 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.

  30. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  31. def info(message: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logger
  32. final def isInstanceOf[T0]: Boolean

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

    Kills the process

    Kills the process

    pid
    returns

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

    Kill the process tree rooted from pid

    Kill the process tree rooted from pid

    pid
    returns

    exit code

  35. def launchCmdExe(cmdLine: String): Process

  36. def launchJava(args: String): Process

  37. def launchProcess(cmdLine: String): Process

  38. 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.

    host
    cmdLine

  39. def log[U](tag: String)(f: (LogWriter) ⇒ U): Unit

    Attributes
    protected
    Definition Classes
    Logger
  40. def log(logLevel: LogLevel, message: ⇒ Any): Unit

    Definition Classes
    Logger
  41. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  42. final def notify(): Unit

    Definition Classes
    AnyRef
  43. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  44. def prepareProcessBuilder(cmdLine: String, inheritIO: Boolean): ProcessBuilder

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

  46. def progName(p: String): String

    Return OS-dependent program name.

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

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

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

  49. def toString(): String

    Definition Classes
    AnyRef → Any
  50. def trace(message: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logger
  51. def unescape(s: String): String

  52. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def warn(message: ⇒ Any): Unit

    Attributes
    protected
    Definition Classes
    Logger

Inherited from Logger

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped