AppleInsider AppleInsider Forums


Go Back   AppleInsider > Mac OS
Register Members List New Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 02-29-2004, 12:10 AM   #1
macrules101
Registered User
 
Join Date: Nov 2003
Location: USA
Posts: 70
Unix ps command for Mac OS apps

When i run the ps command through unix it only shows up all current proceses in the unix shell. How can i get this to encompass all of mac os processes?
is this even posible?

thanks

BTW: Mac Rules!!!
macrules101 is offline   Reply With Quote
Old 02-29-2004, 02:04 AM   #2
Brad
Guest
 
Posts: n/a
ps -ax

Enjoy.
  Reply With Quote
Old 02-29-2004, 02:18 AM   #3
Whisper
Registered User
 
Join Date: Nov 2001
Location: Plano, TX
Posts: 727
The ps man page says something about it only displaying processes attached to a terminal. Typing "top" will give you info about OSX processes though.


Whisper is offline   Reply With Quote
Old 02-29-2004, 02:40 AM   #4
Whisper
Registered User
 
Join Date: Nov 2001
Location: Plano, TX
Posts: 727
Quote:
Originally posted by Brad
ps -ax

Enjoy.
Cool! I didn't know about that


Whisper is offline   Reply With Quote
Old 02-29-2004, 08:30 AM   #5
Scott
Banned
 
Join Date: Apr 2002
Posts: 7,417
>man ps
Scott is offline   Reply With Quote
Old 02-29-2004, 10:39 AM   #6
Noleli2
Registered User
 
Join Date: Jun 2003
Location: UMich
Posts: 128
If you really want to see just OS X apps, assuming you keep them where you're supposed to, you can just pipe a grep into ps:

code:
ps -ax | grep Applications
Noleli2 is offline   Reply With Quote
Old 02-29-2004, 12:31 PM   #7
\/\/ickes
Guest
 
Posts: n/a
Ok just to point out...

You don't need the "-" with the ps commands you have listed with bash.

ps ax
(and for memory usage)
ps aux

However if you want the same output as ps ax only just the process names (not the directorys) you need the "-" and the command is "ps -A"

This is just because of ps's different style of options...

"ps - [letters]" are Unix98 style options.
"ps [letters]" are BSD-style options. Which I guess is OSX style too.
"ps --[words]" are GNU style options.

All get the job done... so it is up to you..
  Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

Forum Jump


All times are GMT -5. The time now is 09:07 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.