|
|
Why can I find e.g. top, pppd, etc. with this but not Finder, iTunes, etc.?
Why can I find e.g. top, pppd, etc. but not Finder, iTunes, etc. with this command 'ps aux | grep xxx'? It seems I can only find processes that 'are not owned by me', as in 'needing a sudo to kill them'.
Why can I find e.g. top, pppd, etc. with this but not Finder, iTunes, etc.?
I tried "ps aux | grep Finder" and it did not work for me. What made it work was widening the window, strange. Seems like the line from ps is too long and gets clipped. I find that using ps axc works better to find process numbers.
Why can I find e.g. top, pppd, etc. with this but not Finder, iTunes, etc.?
If you do ps -auxww | grep -i Finder then it works fine. The 2 w's make it display all data regardless of window size, and the -i to grep makes it case-insensitive.
Although, I'm not sure why you'd have a problem with window width when piping - I haven't verified it, but I was under the impression that piped commands ignored the terminal environment since its output wasn't being directed to the terminal.
Yep, window size is the decisive factor
Either increasing the window size, or using the 'auxww' option makes it display the result of the command. It's funny, I never changed any of the settings of the terminal (10.2.8 installation); when I open a new terminal window it briefly shows: 80x24 and comparing with the screen resolution, the default window should be about 500 pixel wide.
Yep, window size is the decisive factor
The 80x24 isn't pixels, it's rows and columns.
Why can I find e.g. top, pppd, etc. with this but not Finder, iTunes, etc.?
in order for grep to do a case insensitive match, do |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:Hints1 new Hints in the last 24 hoursComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.41 seconds |
|