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: Time limit #106

Open
SWAGESC opened this issue Apr 30, 2020 · 2 comments
Open

Feature Request: Time limit #106

SWAGESC opened this issue Apr 30, 2020 · 2 comments

Comments

@SWAGESC
Copy link

SWAGESC commented Apr 30, 2020

Hey people,
thanks for your Work, its fantastic.

Im not very into C, so my Question is:
Is it possible to implement a time limitation. Like "horst -C36 -q -o test.csv --time 10"
To collect data for 10 seconds or something like that.

Background of it is, i try to build a free Wlan Heatmap tool and would love to use horst for the packet collection part. So my life would be much easier with a parameter like that.

kind regards
ESC

@SWAGESC SWAGESC changed the title Time limit Feature Request: Time limit Apr 30, 2020
@aaaaalbert
Copy link

Hi, I know this isn't exactly what you are asking for, and I'm not the horst author anyway, but there are alternatives to achieve what you want without changing horst at all.

1, use your shell's process control features. In bash and friends, you could start and background horst, do a wait for 10 seconds, then kill the backgrounded process. (That's just the rough idea, it isn't free of side effects, but better suggestions are just a web search away :-)
2, use a utility like GNU coreutil's timeout, https://www.gnu.org/software/coreutils/manual/html_node/timeout-invocation.html

@SWAGESC
Copy link
Author

SWAGESC commented May 4, 2020

Hey, thanks for your anwser :-)
my solution is what you mentioned in point one.
But i thought it is not the clean one. So i created this "issue" to get a clean Solution, and maybe i am not the only one who think that option is usefull :-)

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

2 participants