Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-13-2009, 10:10 AM   #1
LQ Newbie
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
TOP process left running when Putty terminates

Hi, I am new to and to Linux (only 2 years) and I have this question that I need help with. I have exhausted all my options and read the internet to death and to no avail.

The problem is: When a Putty session is running the TOP command and the Putty window is closed or times-out, the procession is still left running and consuming a lot of CPU (because it is looping and requiring input).

The Linux administrators are telling me that this is the correct Linux behaviour, but I disagree as I tried to recreate this behaviour on other Linux boxes at other companies and there the session ends successfully when the Putty window is closed that was running the TOP command.

PuTTY Version is 0.58
RedHat Linux 2.6.9-78.0.13.ELsmp #1 SMP Wed Jan 7 17:52:47 EST 2009 i686 i686 i386 GNU/Linux

Please and Thanks
Old 07-13-2009, 11:06 AM   #2
LQ Newbie
Registered: Jul 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Sorry for this, but after weeks of searching, I found the answer. It seems that the Administrator has added a Logon script to set environmental settings that contained the ‘trap "" 1 2 15’ command. It seems that the ‘trap 1’ caused the problem.

It all seems fixed now. Thanks
Old 07-13-2009, 11:13 AM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,087

Rep: Reputation: 407Reputation: 407Reputation: 407Reputation: 407Reputation: 407
Doesn't that always seem to happen?
You're stuck. You search & search. You post to LQ. Then you find the answer yourself!
Welcome anyway


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Squid process terminates for no apparent reason. Palula Linux - Software 12 04-11-2008 09:39 AM
GRUB in top left corner on boot datavirtue Slackware 2 01-24-2007 01:47 PM
How do I keep an executable from terminates after the initiating shell terminates mr.v. Linux - Newbie 8 01-20-2007 03:47 AM
Penguin logo in the top-left, how?? tearinox Linux - General 4 05-20-2004 11:01 PM
vsftpd : process running as user nobody left after login ? markus1982 Linux - Security 4 01-18-2003 03:49 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration