Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
33%
Installation Wizard into new VRC
39%
Manual into existing VRC
6%
Manual into new VRC
22%
Total votes: 49

Baanboard at LinkedIn


Reference Content

 
pstat()
By patvdv at 26 Feb 2008 - 21:57


pstat()

Syntax

long pstat ( long pid, ref string progname, ref long info(PSMAXSIZE) )

Description

This returns status information about a specified process.

Arguments

pid

The ID of the process for which you want to retrieve information. Specify a negative value here to retrieve information about the init process.

progname

This returns the process code.

info

This returns status information that you can retrieve with the following macros:

  • ps.state(info) returns PSRUNNING, PSBLOCKING, PSSLEEPING, or PSTERMINATING
  • ps.group(info) returns the identifier of the process group to which the process belongs
  • ps.parent(info) returns the identifier of the parent process of the process group

Return values

The process ID of the next process in the internal process list.

Context

Bshell function.

Example

 long     info(PSMAXSIZE)
string progname(512)
long procid

procid = -1
procid = pstat( procid, progname, info )
while procid > 0
| process info
procid = pstat( procid, progname, info )
endwhile

Related help topics

0
No votes yet


All times are GMT +2. The time now is 10:53.


©2001-2018 - Baanboard.com - Baanforums.com