Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

maddin4j

macrumors member
Original poster
Jul 28, 2009
96
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"
screenshot20091118at164.png

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!
 
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..
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.