Which command must Frank use to move the process?

Frank is a member of two projects on you system. He has a process running in a project called
project-clock and needs to move it under the other project he belongs to.
Which command must Frank use to move the process?

Frank is a member of two projects on you system. He has a process running in a project called
project-clock and needs to move it under the other project he belongs to.
Which command must Frank use to move the process?

A.
setproject

B.
newtask

C.
projmod

D.
prtcl

Explanation:
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.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


picoman

picoman

The answer should the B
Example 3 Changing the Project of an Existing Process

The following example changes the project of the existing
process with a pid of 9999 to russia:

example$ newtask -c 9999 -p russia

Qiqe

Qiqe

B.
The option of -c on the command newtask say:
Cause a running to enter a newly created task. A project for the new task can also be specified using the -p option. the invoking user must either own the process or hace super-user priviligies.