Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LOGOFF IN TTYP SOME PROSSESS SAY ON

Status
Not open for further replies.

fadifaris

IS-IT--Management
Aug 13, 2002
2
CA
WHEN I LOG OFF IN A TELNET SECTION SOME PROSSESS SAYS ON EVEN WHEN I HAVE LOGED OFF. IF YOU HAVE HAD THIS TYPE OF PROBLE PLEASE ADVICE WHAT YOU HAVE DONE.
THANK YOU IN ADVANCE.
 
If the processes are running as cron, at, or nohup; then they shouldn't be tied to your tty... they won't go away until they finished doing what they are doing.

If you are using a terminal emulation (Tinyterm, Exceed, telnet.exe, etc), then exit all the way out -- don't just close the emulation program without logging all the way out.
 
Thank you But for what ever reson some processes still running even though we logged off all the way out.
If I see who is logged in I will find all users on even they have logged off all the way.
 
Have seen situations where people have logged off and still show up on the system. A good way to eliminate these ghosts is to zero out the following four files and reboot.
cat /dev/null > /etc/wtmp
"" /etc/wtmpx
"" /etc/utmp
"" /etc/utmpx
When one of these files gets corrupted it will eventually cause login problems; then you have to go into maintenance mode to clean it up.
 
I've seen this before too. I assume you are looking who is logged on with "who".

One thing you can do is do a &quot;ps -t <tty>&quot; where &quot;<tty>&quot; is the tty device returned by &quot;who&quot;. e.g. &quot;ps -t ttyp12&quot;. If no processes are returned then they are logged out.

Don't know why this is important to you. The only time I can imagine it will be of concern is if you are starting to run out of pseudo-terminals. When that happens just increase the max.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top