tcl.pid

Verb: Access/TCL, Releases: AP/Unix and AP 6.0

Displays selected pid.

Syntax

pid {port.number} {(option} pid * {pid.to.search} {(option}

Description

displays the Unix process-id (pid) of a Pick process.
The Pick process process is specified by a 'port.number' (pib), all Pick processes currently connected if the argument is '*', or the current process if there is no argument.

The first form displays the Unix process-id, (PID) or the specified Pick 'port.number' (pib).

The second form displays the Unix process-ids of all the Pick processes currently connected to the virtual machine. An asterisk ('*') precedes the current process. If a list of PIDs 'pid.to.search' is provided, a plus sign ('+') is displayed before each process found in the list. This form is useful to determine whether a given Unix process, identified by its PID, is connected to the virtual machine.

Options

p Directs output to system printer, via spooler.

Example

1) :pid
34726

'34726' is the current Unix pid.

2) :pid 22
14525

'14525' is the Unix pid for Pick pib '22'.

3) :pid * 36978 2345
PIB PID PIB PID
=== ====== === =====
0 35002 * 2 6513
+ 3 36978 4 42611

Displays the PIDs of all Pick processes and searches to determine if the Unix
processes '36978' and '2345' are Pick processes. This
command was executed on (Pick) line '2'. The Unix process
'36978' is connected to the virtual machine on line '3',
and the process '2345' is not connected to this virtual machine.

See Also

Command Name Type Description
basic.%kill C Function Sends signal to process ID.
basic.%pgetpid C Function Gets a Pick process PID.
tcl.psr Verb: Access Gets process status.
tcl.kill Verb: Access Front end to Unix 'kill' command.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.