index of namespace default
 
 index of project core
 
 index of module core

Class core.Process


SynopsisRepresents an external process that communicates with its parent via anonymous pipes.

  Base classes:
  Methods: Description:


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).


See also:  


 
 top of page

Method exec
Create new process and execute command
Signature
exec(Stringcmd,
  StringArrayargs 
  )  
Arguments
StringcmdCommand pathname (e.g. "/bin/ls").
StringArrayargsCommand arguments. StringArray or null.

 
 top of page
Method GetPID
Get pid of current process.
Signature
GetPID():int
Returns
intpid

 
 top of page
Method kill
Kill child process.
Signature
kill()
Description

On Linux, this sends the SIGTERM signal, and after one second SIGKILL. On Windows, TerminateProcess() is called.

 
 top of page
Method SendSignal
Send signal to other process. Not implemented on Windows.
Signature
SendSignal(intpid,
  intsignal 
  )  
Arguments
intpid
intsignal

 
 top of page
Method waitAvail
Query number of available bytes. Wait up to <timeoutMillisec> for new data to arrive.
Signature
waitAvail(inttimeoutMillisec)
Arguments
inttimeoutMillisecTimeout. 0=no timeout.

 
 top of page
 

Project Modules:core 
Project Classes:Boolean , Buffer , Byte , Class , ClassArray , Condition , Configuration , Double , DummyStream , Envelope , Event , Exception , File , Float , FloatArray , FloatArray128 , FloatArray16 , FloatArray32 , FloatArray64 , FloatArray8 , Function , HashTable , IntArray , IntArray128 , IntArray16 , IntArray32 , IntArray64 , IntArray8 , Integer , LFSR , LFSR_NR , List , ListNode , Long , Mailbox , Mutex , Object , ObjectArray , PakFile , PointerArray , Pool , Process , Script , SharedBuffer , Short , Stack , StdErrStream , StdInStream , StdOutStream , Stream , String , String128 , String16 , String32 , String64 , String8 , StringArray , StringIterator , Thread , Time , TKS , TreeNode , UnsignedByte , UnsignedInteger , UnsignedLong , UnsignedShort , Value , ValueArray , Variable 
Project Functions:ceil , exit , floor , GetCurrentThread , getenv , lcchar , mathAbsMaxf , mathAbsMinf , mathAbsMini , mathAbsMini , mathCerpf , mathClampf , mathClampi , mathDistancePointPlane2d , mathFoldf , mathFoldi , mathGCD , mathLerpCyclicf , mathLerpf , mathMaxf , mathMaxi , mathMinf , mathMini , mathNextCyclicf , mathPowerf , mathPowerfC , mathPoweri , mathSerpf , mathSmoothStepf , mathSmoothStepNf , mathWrapf , mathWrapi , milliSeconds , milliSecondsDouble , psystem , putenv , srand , system , ucchar 
All Namespaces:default , graph , ui 
All Projects:core , eqxmms , ShaderVG , ShaderVG_Text , tkanalogrytm , tkchipmunk , tkclap , tkfileutils , tkfreeglut , tkfreetype2 , tkfreeverb , tkmath , tkmidi , tkmidipipe , tkminnie , tkoldmath , tkopengl , tkportaudio , tkradiastools , tksamplechain , tksampleedit , tksampler , tksdl , tksdl_net , tksidplay2 , tkspeexdsp , tksqlite , tktriangulate , tkui , tkvst2 , tkzip , ui , yingtest 


auto-generated by "DOG", the TkScript document generator. Thu, 11/Dec/2025 13:41:59