HP Process Resource Manager User's Guide

Configuring and enabling PRM on the command line
Configuring PRM
Chapter 7 137
Launching a script under PRM
To always run a script in a specific PRM group, use an application record.
In this record, specify the full path of the shell or interpreter used in the
script as the application. Also, give the name—without the path—of the
script as an alternate name.
For example, consider a script named foo that uses ksh to execute its
contents. In this scenario, an application record might look like this:
Figure 7-1 Application record for a shell script
NOTE The full path of the shell/interpreter used in the script must appear in
either the file /etc/shells or the file /opt/prm/shells.
Because the full pathname is not required for the script, a rogue user can
get access to PRM groups—that otherwise would not be accessible— by
using the name of the script for new scripts or wrappers.
If the script is not regularly used or is under development, you can use
prmrun or prmmove to place it in a PRM group. To have the script place
itself in a PRM group, add the following line to the script:
prmmove -p $$ group_name
/bin/ksh::::GroupA,foo
Name of PRM group that
script should run in
Name of script
Full path of shell
running script
contents