1

How to stop a infinite running process(ztail) started by a ssh session after that session is closed

view story
linux-howto

http://unix.stackexchange.com – I have a peculiar problem. My server supports multiple ssh session simultaneously, so that multiple admins can manage( via Command line interface) it simultaneously. we have a command which calls ztail to show the compressed log files. Now when the current ssh session is closed( without pressing ctrl - c , to stop the tail command), this command should ideally stop working. But what I observed when I start a new ssh session that , the process(ztail) is still running in background and consuming my cpu, even though the previous session was closed. Now how can I know when the session was closed, (HowTos)