Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (7229 KB)
newtask(1)Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also Name
Synopsisnewtask [-p project] [-v] [-c pid | [-Fl] [command...]] DescriptionThe newtask command executes the user's default shell or a specified command, placing the executed command in a new task owned by the specified project. The user's default shell is the one specified in the passwd database, and is determined using getpwnam(). Alternatively, newtask can be used to cause an already running process to enter a newly created task. A project for the new task can also be specified in this form of the command. This might be desirable for processes that are mission critical and cannot be restarted in order to put them into a new project. In the case that extended accounting is active, the newtask command can additionally cause the creation of a task accounting record marking the completion of the preceding system task. Options
The following options are supported: Operands
The following operands are supported: ExamplesExample 1 Creating a New ShellThe following example creates a new shell in the canada project, displaying the task id:
Example 2 Running the date CommandThe following example runs the date command in the russia project:
Example 3 Changing the Project of an Existing ProcessThe following example changes the project of the existing process with a pid of 9999 to russia:
Exit Status
The following exit values are returned: Files
AttributesSee attributes(5) for a description of the following attributes:
See Alsoproc(1), id(1M), poolbind(1M), execvp(2), setrctl(2), settaskid(2), setproject(3PROJECT), nsswitch.conf(4), proc(4), project(4), attributes(5) Name | Synopsis | Description | Options | Operands | Examples | Exit Status | Files | Attributes | See Also |
|||||||