default
core
corecore.Processexec(String cmd, StringArray args) - Create new process and execute command
GetPID() : int - Get pid of current process.
kill() - Kill child process.
SendSignal(int pid, signal) - Send signal to other process. Not implemented on Windows.
waitAvail(int timeoutMillisec) - Query number of available bytes. Wait up to <timeoutMillisec> for new data to arrive.
Writing to the stream sends data to the standard input of the external process.
The standard output (and error output) can be accessed by reading data from the stream.
The stream size indicates how many bytes can be read from the child process.
The waitAvail()() method supports an additional timeout parameter (uses select() on Linux and a polling loop on Windows).
Method exec | |||||||||||||||
Create new process and execute command | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method GetPID | |||||
Get pid of current process. | |||||
Signature | |||||
| |||||
Returns | |||||
|
Method kill | |||
Kill child process. | |||
Signature | |||
| |||
Description | |||
On Linux, this sends the SIGTERM signal, and after one second SIGKILL. On Windows, TerminateProcess() is called. |
Method SendSignal | |||||||||||||||
Send signal to other process. Not implemented on Windows. | |||||||||||||||
Signature | |||||||||||||||
| |||||||||||||||
Arguments | |||||||||||||||
|
Method waitAvail | |||||
Query number of available bytes. Wait up to <timeoutMillisec> for new data to arrive. | |||||
Signature | |||||
| |||||
Arguments | |||||
|
auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59