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.
To perform this action, you must either be superuser, or be the owner of the process and be a
member of the new project.
1. Become superuser or assume an equivalent role
2. Obtain the process ID of thebook_catalogprocess.
# pgrep book_catalog
8100
3. Associate process8100with a new task ID in thebooksiteproject.
# newtask -v -p booksite -c 8100
17
The -coption specifies that newtaskoperate on the existing named process.
4. Confirm the task to process ID mapping.
# pgrep -T 17
8100
Incorrect:
Not C: projmod does not change the processes of a project.
The projmod utility modifies a project's definition on the system. projmod changes the definition of the specified project and makes the appropriate project-related system file and file system changes.
Submit