SYNOPSIS
process [
DESCRIPTION
process reports how many NuTCRACKER Platform processes are running and displays information on active NuTCRACKER Platform processes. Without options, information is printed in short form. The options described in the Options section control the information that is printed.
Options
-
-a -
uses all print options. (This is a shorthand notation for
-v4fgLlsSt ) -
-4 -
displays information about POSIX.4 objects.
-
-f -
displays information about open files.
-
-g -
displays information about signals.
-
-L -
displays the state of all file locks.
-
-l -
displays information about fast local transport.
-
-p pid -
displays information about the specified process ID.
-
-S -
displays information about sockets.
-
-s -
displays information about security.
also displays concurrent users holding licenses.
-
-t -
displays information about threads.
-
-v -
displays information in verbose form.
-
-w timeout -
specifies time out for a process to respond, in milliseconds.
-
-j -
output in machine readable JSON format for easier scripting.
For example, it is possible to render the output as a web page remotely using JSON 2 HTML (https://github.com/bloopletech/json2html/tree/master) and this simple php script:
<?php echo shell_exec("c:/win32app/nutc4/bin/process.exe -aj"); ?>
POSIX.4 objects persist as long at the NuTCRACKER Platform service is running. On UNIX it is not well defined how to enumerate these objects and so there ar eno standard tools to find and delete them. A simple sctip such as this can be used to enumerate all semaphones:
#!perl.exe use JSON; use Data::Dumper; my $json_text = `process -aj`; my $json = JSON->new->allow_nonref; my $perl_scalar = $json->decode( $json_text ); my $pretty_printed = $json->pretty->encode( $perl_scalar ); # pretty-printing # print $pretty_printed; print Dumper($perl_scalar); my @semaphores = $perl_scalar->{'Global Information'}->{'POSIX.4 Semaphores'}; foreach my $semaphore (@semaphores) { print $semaphore->{'Name'}; }
AVAILABILITY
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.5 Documentation Build 40.