Create an application-based project for managing the application. Select the Do Not Use Match Expression check box.
For detailed steps, see To Create an Application-Based Project.
Select from the following by the OS version:
For the Solaris 8 OS, type:
% srmuser user_name newtask -p project_name application_name |
where user_name is the UNIX user name, and project_name is in the form user.username. In the Solaris 8 OS, because only the user-based container is supported, user_name and project_name are the same.
For the Solaris 9 or Solaris 10 OS, type:
% newtask -p project_name application_name |
where project_name is the project that is associated with the container, and application_name is the command that starts the application, including any command arguments.
The application is started in the container.
The following is an example of starting an application named tracks inside a container named music:
% newtask -p music tracks -z 0 mozart.au |
where -z 0 mozart.au are the command-line arguments for the application tracks.
After the application has been started, you can verify which project the application is associated with by typing:
% ps -ae -o pid,project,comm |
The following is an example of the output from this command:
PID PROJECT COMMAND ... 17771 default ora_smon_SunMC 16246 system rquotad 26760 group.staff /bin/csh 16266 music tracks 17777 default ora_d000_SunMC 17775 default ora_s000_SunMC 17769 default ora_ckpt_SunMC |
In this example, the application named tracks has PID 16266, the project is music, and the executable is tracks. This is the same application started in Example 4–6.