class ExecOptions extends Object
Spawns a shell then executes the command within that shell, buffering any generated output.
Note: Never pass unsanitized user input to this function. Any input containing shell meta-characters may be used to trigger arbitrary command execution.
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- ExecOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ExecOptions(cwd: UndefOr[String] = js.undefined, env: Any = js.undefined, encoding: UndefOr[String] = js.undefined, shell: UndefOr[String] = js.undefined, timeout: UndefOr[JsNumber] = js.undefined, maxBuffer: UndefOr[JsNumber] = js.undefined, killSignal: UndefOr[String] = js.undefined, uid: UndefOr[JsNumber] = js.undefined, gid: UndefOr[JsNumber] = js.undefined)
- cwd
<String> Current working directory of the child process
- env
<Object> Environment key-value pairs
- encoding
<String> (Default: 'utf8')
- shell
<String> Shell to execute the command with (Default: '/bin/sh' on UNIX, 'cmd.exe' on Windows, The shell should understand the -c switch on UNIX or /d /s /c on Windows. On Windows, command line parsing should be compatible with cmd.exe.)
- timeout
<Number> (Default: 0)
- maxBuffer
<Number> largest amount of data (in bytes) allowed on stdout or stderr - if exceeded child process is killed (Default: 200*1024)
- killSignal
<String> (Default: 'SIGTERM')
- uid
<Number> Sets the user identity of the process. (See setuid(2).)
- gid
<Number> Sets the group identity of the process. (See setgid(2).)
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[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- val cwd: UndefOr[String]
- val encoding: UndefOr[String]
- val env: Any
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- val gid: UndefOr[JsNumber]
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- val killSignal: UndefOr[String]
- val maxBuffer: UndefOr[JsNumber]
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- val shell: UndefOr[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- val timeout: UndefOr[JsNumber]
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
- val uid: UndefOr[JsNumber]
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )