Skip to main content

LensStudio:Subprocess.spawnSync

Function

the options parameter can take cwd and timeout, meaning the current working directory to launch the program in, as well as the milliseconds to wait for a syn…

spawnSync(command, args, options): SpawnSyncResult

the options parameter can take cwd and timeout, meaning the current working directory to launch the program in, as well as the milliseconds to wait for a synchronously spawned subprocess to finish. By default, cwd is set to the current directory of the Lens Studio application, and timeout is set to 30000.

Parameters

ParameterType
commandstring
argsstring[]
optionsSpawnOptions

Returns

SpawnSyncResult