Job Management Partner 1/Automatic Operation GUI and Command Reference
This command stops execution of a task by specifying the ID of the task.
stoptask
/taskid task-ID
/user user-ID
{/password password | /passwordfile password-file-path}JP1/AO-installation-folder\bin
Execute the command as a user with Administrator permissions for the OS. If a user without Administrator permissions executes the command, a message appears asking the user to elevate the permission level.
The Admin, Develop, Modify, or Submit role must be set for the resource group of the target task from the user group that the user who executes the command belongs to. The command does not stop any tasks in a resource group for which none of these roles are set.
The following table lists the return codes from the command.
| Return code | Description |
|---|---|
| 0 | The command succeeded. |
| 1 | The argument is invalid. |
| 2 | The command execution has been interrupted. |
| 3 | The service status is invalid. |
| 5 | Communication failed. |
| 6 | Authentication failed. |
| 7 | An invalid path is specified. |
| 9 | The specified path does not exist. |
| 14 | You do not have permission to execute the command. |
| 140 | Stopping the execution of the task failed. |
| 255 | The command execution has been interrupted due to an error other than the above. |
The following command shows an example of how to stop execution of the task with the specified task ID:
stoptask /taskid 0001 /user user01 /password pass01
All Rights Reserved. Copyright (C) 2012, 2013,Hitachi, Ltd.