Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request -n <number of iterations> command line option #44

Open
thejerrod opened this issue Oct 11, 2021 · 0 comments
Open

Feature request -n <number of iterations> command line option #44

thejerrod opened this issue Oct 11, 2021 · 0 comments

Comments

@thejerrod
Copy link

top has an option to run for n iterations:

   -n  :Number-of-iterations limit as:  -n number
        Specifies the maximum number of iterations, or frames, top should produce before ending.

This is useful when passed to other utilities, for example:

$ lntop -n 1 | grep inactive | wc -l
3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant