class SpawnSyncOptions 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
- @ScalaJSDefined() @RawJSType()
- Alphabetic
- By Inheritance
- SpawnSyncOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SpawnSyncOptions(cwd: UndefOr[String] = js.undefined, input: UndefOr[Input] = js.undefined, argv0: UndefOr[String] = js.undefined, stdio: UndefOr[StdIo] = js.undefined, env: UndefOr[Object] = js.undefined, encoding: UndefOr[String] = js.undefined, shell: UndefOr[|[Boolean, String]] = js.undefined, timeout: UndefOr[Int] = js.undefined, maxBuffer: UndefOr[Int] = js.undefined, killSignal: UndefOr[KillSignal] = js.undefined, uid: UndefOr[UID] = js.undefined, gid: UndefOr[GID] = js.undefined, windowsHide: UndefOr[Boolean] = js.undefined, windowsVerbatimArguments: UndefOr[Boolean] = js.undefined)
- cwd
Current working directory of the child process
- input
The value which will be passed as stdin to the spawned process. Supplying this value will override stdio[0].
- argv0
Explicitly set the value of argv[0] sent to the child process. This will be set to command if not specified.
- stdio
Child's stdio configuration. stderr by default will be output to the parent process' stderr unless stdio is specified. Default: 'pipe'.
- env
Environment key-value pairs
- encoding
(Default: 'utf8')
- shell
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
(Default: 0)
- maxBuffer
largest amount of data (in bytes) allowed on stdout or stderr - if exceeded child process is killed (Default: 200*1024)
- killSignal
(Default: 'SIGTERM')
- uid
Sets the user identity of the process. (See setuid(2).)
- gid
Sets the group identity of the process. (See setgid(2).)
- windowsHide
Hide the subprocess console window that would normally be created on Windows systems. Default:
false
.- windowsVerbatimArguments
No quoting or escaping of arguments is done on Windows. Ignored on Unix. This is set to true automatically when shell is specified and is CMD. Default: false.
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
- var argv0: UndefOr[String]
- 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()
- var cwd: UndefOr[String]
- var encoding: UndefOr[String]
- var env: UndefOr[Object]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- var gid: UndefOr[GID]
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- var input: UndefOr[Input]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- var killSignal: UndefOr[KillSignal]
- var maxBuffer: UndefOr[Int]
- 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 propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var shell: UndefOr[|[Boolean, String]]
- var stdio: UndefOr[StdIo]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- var timeout: UndefOr[Int]
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- var uid: UndefOr[UID]
- def valueOf(): Any
- Definition Classes
- Object
- 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])
- var windowsHide: UndefOr[Boolean]
- var windowsVerbatimArguments: UndefOr[Boolean]