Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Miscellaneous
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Miscellaneous Questions about SUSE Linux that don't fit anywhere else

 
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 09-Aug-2004, 20:10
anthro398
Guest
 
Posts: n/a
Default

This used to just drive me nuts. I guess I'd quit sessions to my server, but the session pid would persist until, at some time later, I'd do a "who" and get back like 5 instances of myself. So now, I always try to type "exit" instead of closing the terminal window. When I do get multiple instances of myself, I sometimes do a "ps uxa" to see all running processes and then "kill pid" or "kill -9 pid" or "kill -hup pid", where pid is the process id of a bash session taken from the ps command. That way I can kill my old bash login session without restarting. Really, this drove me nuts for awhile.

jim
  #12 (permalink)  
Old 09-Aug-2004, 21:45
guilluame
Guest
 
Posts: n/a
Default

yes there`s a lot to learn, I don`t know where to begin , but in youre case ,when you logged out you would be back to one user, but even logging out of kde keeps this extra proces running...I think I do a new install again to find out, what exactly happends
  #13 (permalink)  
Old 13-Aug-2004, 00:50
guilluame
Guest
 
Posts: n/a
Default

wel in kde 3.2.1 you can open as much consoles as you want and there wil be one user stated.. after installing 3.2.3 , every console you open states an extra user

using w -f in kde 3.2.1 always looks like this:

linux@linux:~> w -f
07:43:26 up 5:09, 3 users, load average: 0.19, 0.23, 0.26
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
linux :0 console 03:08 ?xdm? 17:32 0.01s -:0

using kde 3.2.3, with no extra console, always looks like this:

linux@linux:~> w -f
07:43:26 up 5:09, 3 users, load average: 0.19, 0.23, 0.26
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
linux :0 console 03:08 ?xdm? 17:32 0.01s -:0
linux pts/0 - 03:08 4:35m 0.00s 2.44s kdeinit: kwrited

so kde 3.2.3 ads the line:

linux pts/0 - 03:08 4:35m 0.00s 2.44s kdeinit: kwrited

my question is, if 3.2.3 is supposed to do this??

I`ts not realy that importend, I just want to know!

  #14 (permalink)  
Old 13-Aug-2004, 02:31
arun
Guest
 
Posts: n/a
Default

I am curious, where are you typing the command 'w -f'? Because my output if I type it from a konsole shell (in kde 3.2.3) is usually like the one below.

USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
arun :0 console 02:06 ?xdm? 30:03 0.02s -:0
arun pts/0 - 07:14 0.00s 0.41s 0.01s w -f

Given that you have 'kdeinit: kwrited' showing up in pts/0, you are presumably running the command 'w -f' in some other way?

Now to answer your question, I am not quite sure of the kde 3.2.1 behavior. But the way kde 3.2.3 reports it is quite normal, and is the way I understand these terminals to work. Everytime you open a terminal (be it a pseudo terminal or a text console), you are counted as a user logged in through that terminal. So, logging in by text consoles, starting x terminals, remote logins through telnet, rsh, ssh etc., each usually account for a user logged in. The commands like 'w', 'who' and 'users' are supposed to report currently logged in users, and so if you log in three times, your username shows up thrice and so on.

The terminal ':0' is special and runs your Xserver. Now I've seen some unix boxes where that does not show up in 'w' command though. But other terminals like pts/0, tty1, etc., always do.

Another tip is to use the command 'ps -ax' to list the running processes. That should list the terminals attached to each running process (If there is a ? instead, it means no terminals are attached to that process). For each open terminal there usually is a user behind it (though I am not very sure if this always has to be true -- maybe somebody else can say more on this).
  #15 (permalink)  
Old 13-Aug-2004, 05:08
guilluame
Guest
 
Posts: n/a
Default

hello, wel it doesn`t matter were i type w -f, everywhere the same output...

I went looking for the use of kwrited and found out it`s a deamon for showing messages from commands like "wall" or "write" used for multi user machines, and that you don`t need it if you have a single user machine (could someone confirm this,tnx)... It said, turning it of would reduce kde`s startup time and memory use.. duh, its allready so super fast, and I got plenty of memory...

So, I would like to ask, if it`s wise to turn of this kwrited deamon ??

tnx to my user problem, I found out there is a kwrited deamon, I don`t know if it was turned on in kde 3.2.1 by default, but in 3.2.3 it is, and is located in the service manager in the control center...

wel I`m going to try and find some more info about terminals, consoles, shells...the only thing I know of them is that you can do anything with them, most of the commands and usage, I learned by the years using linux, believe me I only know, what I had to know to solve some common problems, Its realy awsom that there`s always something to learn, and the great thing is......the system is not going to have a discussion with you, it sits there, and waits for you to do something with it...WOW
 
Page 2 of 2 1 2

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2