Error getting tags :
error 404Error getting tags :
error 404 openProcessIDs | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
openProcessIDs
Basics
Expander triangle
Type
Function
Syntax
the openProcessIDs openProcessIDs()
See Also
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
Process
Summary
Returns the process IDs of processes that have been opened with the open processcommand, but have not yet exited.
Examples

the openProcessIDs
put last line of the openProcessIDs into previousProcessID

Additional Comments
Expander triangle

Use the openProcessIDs function to communicate with processes you have opened with the open process command.

Value:

The openProcessIDs function returns a list of integers, one per line.

Comments:

Certain Unix commands such as "kill" require a process ID. You can use these commands to act on processes you opened by using the shell command:

put "kill -9" && line 1 of the openProcessIDs into whatToExecute

get shell(whatToExecute)

On Mac OS and OS X systems, there is no process ID. Instead, the openProcessIDs function returns a list of integers. The first application started up (with the open process or launch command) during a session is assigned the number 1, the second is assigned the number 2, and so on. After an application quits, its process number is not re-used, so you can use the openProcessIDs function to determine how many times Revolution has started up an application during the current session.

The list of process IDs is in the same order used by openProcesses function, which is the same order that the processes were opened.

Programs that were not started by Revolution are not included in the list returned by the openProcessIDs function.

User Comments
Expander triangle