Terminate the program according to the following procedure when you accidentally executed a program on the login node where the program execution is prohibited.
See "How to terminate the job submitted to the batch job scheduler" for the deletion of the jobs submitted to the batch job scheduler.
1. Confirm the PID of the process
Show information of the process you want to terminate with top and/or ps commands.
Check the PID with top command.
$ top Tasks: 1457 total, 1 running, 1441 sleeping, 11 stopped, 3 zombie |
2. Termination of the process
Terminate the process with kill command.
Specify the PID as the argument. (20680 in this example)
$ kill 20680 |
3. Conformation that the process is terminated
Use top and ps commands to confirm the process terminated.
if the process is not displayed, it has correctly terminated.
Proceed to 4 if the process does not terminate.
4. Force termination of the process
Execute the command below if the process does not terminate.
$ kill -9 20680 |
After that, use top and ps commands to confirm the process terminated.