object Shell extends LogSupport
Launch UNIX (or cygwin) commands from Scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- Shell
- LogSupport
- LazyLogger
- LoggingMethods
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- macro def debug(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def debug(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def env(key: String): Option[String]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- macro def error(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def error(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def escape(s: String): String
- def exec(cmdLine: String): Int
Launch a process then retrieves the exit code
- def execRemote(hostname: String, cmdLine: String): Int
- def findCommand(name: String): Option[String]
- def findJavaCommand(javaCmdName: String = "java"): Option[String]
- def findJavaHome: Option[String]
- def findSh: Option[String]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getCommand(name: String): String
- def getEnv: Map[String, String]
- def getExecPath: Array[String]
- def getProcessID(p: Process): Int
Returns process id
Returns process id
- returns
process id or -1 if pid cannot be detected
- 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.
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- macro def info(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def info(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kill(pid: Int, signal: String = "TERM"): Int
Kills the process
- 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
- def launchCmdExe(cmdLine: String): Process
- def launchJava(args: String): Process
- def launchProcess(cmdLine: String): Process
- 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.
- macro def logAt(logLevel: LogLevel, message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- lazy val logger: Logger
- Attributes
- protected[this]
- Definition Classes
- LazyLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def prepareProcessBuilder(cmdLine: String, inheritIO: Boolean): ProcessBuilder
- def prepareProcessBuilderFromSeq(tokens: Seq[String], inheritIO: Boolean): ProcessBuilder
- def progName(p: String): String
Return OS-dependent program name.
Return OS-dependent program name. (e.g., sh in Unix, sh.exe in Windows)
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def sysProp(key: String): Option[String]
- def toString(): String
- Definition Classes
- AnyRef → Any
- macro def trace(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def trace(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- def unescape(s: String): String
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- macro def warn(message: Any, cause: Throwable): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
- macro def warn(message: Any): Unit
- Attributes
- protected
- Definition Classes
- LoggingMethods
Deprecated Value Members
- 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.