xrmx / uwsgitop

top-like app for monitoring uWSGI instances
MIT License
496 stars 77 forks source link

How can I save the output of uwsgitop to a text #54

Open kinglion580 opened 6 years ago

kinglion580 commented 6 years ago

I want to save the output of uwsgitop at a certain time into a text, so that I can use some scripts to analyze the state of uwsgi at a certain time.

I know that the top command can get a static result using top -n 1

But I don't know how to do with uwsgitop.

xrmx commented 6 years ago

Adding a -n option would be helpful, it's matter of counting the iterations of the loop and exit when it matches the one passed as argument. Feel free to open a PR implementing that.

renoyuan commented 4 years ago

I try -n "uwsgitop: error: unrecognized arguments: -n"

Hong-yu1999 commented 1 year ago

I have the same problem