|
Policies Links
|
|
Interactive Remote and Workstation Usage
Running interactive jobs on hobbes and Lab workstations
Hobbes and the lab workstations are intended for interactive usage. This means that you log in, run your jobs to completion and then log out. When you log out, no running processes should be left behind.*
There are two common reasons for processes remaining after a session ends. These are:
- Closing a session without logging out by closing a connection window. This includes sessions which locked or froze and sessions where the connection was dropped due to network problems. This applies only to remote login sessions such as on hobbes.
- Starting a job in the background with the '&' flag and then logging out. This is not allowed on either hobbes or the lab workstations.
When processes are left running, you are responsible for logging back in to the system and killing off those processes.
Killing leftover processes
There are two commands you will need to do this, psand kill.
To kill a job, you need the process id. The command ps will show all of the processes in your current shell. If the job was started in a different shell or login session, use the flag -fu . This will give you a full process listing for all processes owned by the specified username.
ps -fu
The process ID is the second column of the readout. You will then use the kill command with the -9 flag. The full command is:
kill -9
Use this to kill off old processes from sessions that didn't end correctly. Do not use this to kill your current ksh process.
Check the man pages for more options for these commands (man ).
*CPU-intensive jobs are the one exception to this.
|