I'm logged in the terminal twice!!??

chemistry_geek

Registered
I've tried searching the forums on this subject and I can't find a match anywhere.

In the terminal, when I type who I get this:

Welcome to Darwin!
[localhost:~] alchemist% who
alchemist console Sep 2 14:22
alchemist ttyp1 Sep 2 14:22
[localhost:~] alchemist%


Whenever I typed who in the past, I used to get alchemist ttyp1 Sep 2 14:22 , but for some unknown reason, I'm logged in the console as well. As far as I know, I didn't do anything to cause this. I recently moved to a new city and my computer had been unplugged for about a week.

Any suggestions as to how to correct this?
 
I wouldn't worry about it. The login on the console should be the GUI login, and ttyp1 is the session at the terminal. A single user having a good half dozen logins at a time wouldn't be out of the question. If you're using the output in a script or something, just use grep to filter out the relevant session.

Incidentally, on my system, only the console login is reported. Weird.
 
Out of interest, which version of OS X are you using?

I've noticed strange login-related issues with the Terminal app before, as have others before me. I think my thread is no longer around, but basically I noticed that the open tty connections were not being closed when the user logged out. The user would log in, log out, and see the login (using "who" or "w") had not disappeared. In fact, the user would just accumulate logins over time, it seemed. I tried checking this behavior using XDarwin and found that logouts occurred correctly when using an xterm. So, it was Temrinal.app related.

This happened when using the default login shell (set in the Terminal preferences) rather than a tcsh or other shell. Switching to using tcsh led to not having the tty logins being observed at all, only the console login!

Have you been using login shells, tcsh, or something else? I had hoped this is something Apple might address with 10.2.
 
I'm using 10.1.5. All I do to enter the Terminal is click on the Terminal.app icon in the dock. This behavior started after I moved and the computer was unplugged for 1 week. Nothing else has changed to my knowledge.
 
Back
Top