Executes a system process/command on the underlying OS.
Returns a struct with the following keys:
{ output : [ the command output ] error : [ any errors emitted by the command ] timeout : [ boolean value as to whether a timeout was reached ] terminated : [ boolean value as to whether the process was terminated ] pid : the PID of the process }
SystemExecute(name=[string], arguments=[any], timeout=[long], terminateOnTimeout=[boolean], directory=[string], output=[string], error=[string])
Argument | Type | Required | Description | Default |
---|---|---|---|---|
name |
string |
true |
The process name or binary path ( e.g. bash or /bin/sh ) | |
arguments |
any |
false |
The process arguments ( e.g. for java --version this would be --version ) |
|
timeout |
long |
false |
The timeout to wait for the command, in seconds ( default unlimited ) | |
terminateOnTimeout |
boolean |
false |
Whether to terminate the process/command if a timeout is reached | false |
directory |
string |
false |
A working directory to execute the command from | |
output |
string |
false |
||
error |
string |
false |
An optional file path to write errors to |
- ApplicationRestart
- ApplicationStartTime
- ApplicationStop
- BoxAnnounce
- BoxAnnounceAsync
- BoxRegisterInterceptor
- BoxRegisterRequestInterceptor
- CallStackGet
- CreateGUID
- CreateObject
- CreateUUID
- DE
- DebugBoxContexts
- Dump
- Duplicate
- echo
- EncodeForHTML
- GetApplicationMetadata
- GetBaseTagData
- GetBaseTagList
- GetBaseTemplatePath
- GetBoxContext
- GetBoxRuntime
- GetBoxVersionInfo
- GetClassMetadata
- GetComponentList
- GetContextRoot
- GetCurrentTemplatePath
- GetFileFromPath
- GetFunctionCalledName
- GetFunctionList
- GetModuleInfo
- GetModuleList
- GetRequestClassLoader
- GetSystemSetting
- GetTempDirectory
- GetTickCount
- htmlEditFormat
- IIF
- Invoke
- IsInstanceOf
- JavaCast
- ObjectDeserialize
- ObjectSerialize
- PagePoolClear
- Println
- RunThreadInContext
- SessionInvalidate
- SessionRotate
- SessionStartTime
- Sleep
- SystemCacheClear
- SystemOutput
- Throw
- Trace
- URLDecode
- URLEncodedFormat
- writeDump
- WriteLog
- WriteOutput