| View previous topic :: View next topic |
| Author |
Message |
Electrofunkdaddy New Member

Joined: 06 Mar 2013 Posts: 3
|
Posted: Thu Mar 07, 2013 3:06 pm Post subject: Uptime |
|
|
Hey I am trying to write a php script that uses the uptime command in terminal. this works but
running up shows 19:48 51 mins, 4 users???? load averages 0.45 0.38 0.27 etc
I am confused by the 4 users, how do I find out what and who they are, it is only me that uses my mac and I have finished writing the website for it.
Thanks
EFD  |
|
| Back to top |
|
 |
Smithcraft Veteran Member


Joined: 09 Nov 2008 Posts: 3012 Location: Seattle
|
Posted: Thu Mar 07, 2013 4:03 pm Post subject: |
|
|
Sometimes deamon like processes show as users. If you restart, does it still show 4 users right away?
I'm sure there should be a way to list the users, but I can't think of it right now.
SC _________________ Grumpy old man of computing.
[Desktop] G4 mini - 1.5Ghz 1GB 80GB HDD - Newer miniStack v2 500GB - 10.5.8
[Media System] Intel i5 mini - 2.33Ghz 8GB 500GB HDD - 4 x Hitachi 2TB HDD in a qBOX-SF - 10.7.5 (Thanks Phil!)
Make sure it has pins! |
|
| Back to top |
|
 |
philiparcario Veteran Member

Joined: 19 Jun 2006 Posts: 4567 Location: Howell NJ USA
|
Posted: Thu Mar 07, 2013 5:28 pm Post subject: |
|
|
you are welcome smithcraft.
to the op go to finder type in users take a look see at the user folder. sometimes they get duplicated. you may have 2 or 3 user folders. _________________ 2010 Mm 2.4 C2D oem 320gb hdd 8gb ram
2012Mm base 2.5 with 16gb ram diy fusion drive
2012Mm quad with 8gb ram oem 1tb hdd
promise pegasus r6 3x 3tb + 3x 4tb =21tb hdds
lacie little big disk 2x 512gb ssds
synology 2tb disk station |
|
| Back to top |
|
 |
Cypher Veteran Member


Joined: 24 Jan 2007 Posts: 2912 Location: North West - UK
|
Posted: Thu Mar 07, 2013 5:39 pm Post subject: |
|
|
Have a look in Activity Monitor, and select ALL PROCESSES in the drop down list, then see how many different users show up in the USER column. I have more than the 2 real users. In fact quite a lot more LOL Maybe some of these background ones account for the 4 your seeing.
I have 10 different ones showing including my real users and
root
_spotlight
_netbios
_networkd
_eppc
_mdnsrespoder
_coreaudiod
_usbmuxd _________________ Phil
Mac Mini 2.53GHz - iMac 2.0Ghz - Macbook Pro 2.4GHz - iPad 1 32GB 3G
6TB Netgear Ready NAS NV+ - 6TB Drobo S |
|
| Back to top |
|
 |
Brendan Member

Joined: 04 May 2005 Posts: 199
|
Posted: Thu Mar 07, 2013 8:14 pm Post subject: |
|
|
| You will have a user for each GUI session logon and a user for each terminal session you open. Open another terminal session and the count will go up. The who command will tell you who is logged in and where. |
|
| Back to top |
|
 |
macmanmacman Veteran Member

Joined: 25 Oct 2007 Posts: 1682
|
Posted: Fri Mar 08, 2013 7:59 am Post subject: |
|
|
| also make sure the other users are not networked users mac os x likes to pick up other machines on your network it doesn't mean they are users or you can access them it just means this is what it detected i got confused by the 4 user statment i found it was communicating with my moms macbook air my computer my iMac and my moms iPhone and listing all these devices as users which of course they are not look under the shared devices tab all you have to do is open your hard drive folder on your desktop and look to the left if it says shared devices or shared and you see devices listed there are your users |
|
| Back to top |
|
 |
|