Go to main content

Administering Resource Management in Oracle® Solaris 11.4

Exit Print View

Updated: August 2018
 
 

Example: How to Move a Running Process Into a New Task

This example shows how to associate a running process with a different task and new project.

Before You Begin

To perform this action, you must be the root user, have the required rights profile, or be the owner of the process and be a member of the new project.

  1. Obtain the process ID of the book_catalog process.
    $ pgrep book_catalog
    8100
  2. Associate process 8100 with a new task ID in the booksite project.

    The –c option specifies that newtask operate on the existing named process.

    $ newtask -v -p booksite -c 8100
    17
  3. Confirm the task to process ID mapping.
    $ pgrep -T 17
    8100