Geektool processes script not working under Snow Leopard

maddin4j

macrumors member
Original poster
Jul 28, 2009
95
0
Hello guys!

I am having problems with Geektool. Well, the actual problem is not the application itself. I think it is because of the UNIX script I am trying to use.
I just want to show my processes (I mean My Processes, like when you go into Activity Monitor and choose "My Processes" next to the filter box) on the desktop. I do have the script which I have found several times online but it does not seem to work under Snow Leopard. The one I am using is this here:

Code:
top -FR -l2  | grep '^....[1234567890] ' | grep -v ' 0.0% ..:' | cut -c 6-24,64-70
As far as I know, this should show me the process name, % CPU, and real memory.

After unsuccessfully pasting this script in to Geektool, I though I'd just test it in Terminal.

In Terminal I get this message: "invalid option or syntax: -FR"

The weird thing is that on every website where they post this script to show running processes, all show the "-FR".

I don't know anything about UNIX scripts and hope you guys can help me with this.

And by the way, how can is sort those processes after their real memory usage? And is it possible to show only processes which use more than 100MB of real memory?

Thanks a lot!
 

jmp51483

macrumors member
Apr 22, 2010
42
12
Its actually telling you what is wrong right inside Terminal.. notice it says "invalid syntax -FR" try separating the FR like this -F -R. See if it works then..
 
Comment

Similar threads

  • surfbug
0
Replies
0
Views
306
  • AppleInLVX
2
Replies
2
Views
538
  • cheddar-caveman
3
Replies
3
Views
714
Replies
0
Views
403
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.