[X4U] How to SSH and report a system sample?

Nick Scalise nickscalise at cox.net
Sat Apr 22 08:20:39 PDT 2006


On Apr 22, 2006, at 10:13 AM, Michael Elliott wrote:

> I know that there are some great Terminal jockeys out there, but  
> I'm definitely a GUI kind of guy.
>
> I reported a bug to Apple via http://bugreport.apple.com  and  
> they've asked for more information.  Since this is an intermittent  
> freeze (one app will go Beachball, then multiple others eventually  
> follow, and I'm unable to log out or select menu items), they've  
> asked me if I'm
>
>  "able to SSH into the machine that is hung and capture a sample of  
> the system while it's in the hung state"
>
> I can SSH into my iMac via
>
> SSH imac.local     and run top, etc.
>
> But then I have no idea how to "capture a sample of the system".
>
> Can someone give a neophyte some succinct instructions on how to do  
> this?

One way would be to just send the output of Top to a file.

In terminal, type:

top >>top.txt

After a few seconds you can hit command . and stop the output. The  
top.txt file will be in whatever directory your terminal app opens  
in. For me, that is at the root of my users directory.

Anything app that outputs to screen can be output to a file using the >>

Good luck.
--
Nick Scalise
nickscalise at cox.net




More information about the X4U mailing list