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

Development of a utility that can execute commands in parallel that are specified in a single command file #333

Open
erikbor opened this issue Nov 15, 2017 · 1 comment
Assignees

Comments

@erikbor
Copy link
Contributor

erikbor commented Nov 15, 2017

For the fuzzing efforts we'd like to have a utility that can execute commands in parallel/concurrently.

Usage:

$ spawn <timeout in seconds> <number of forks> <command file>

The content of the command file (e.g.: /tmp/cmd.txt) looks like:

command 1
command 2
command 3
command 4
command 5
command 6
command 7
command 8
command 9
command 10
command 11
command 12

We could execute this command file like this:

$ spawn 5 4 /tmp/cmd.txt

The utility would first execute command 1, command 2, command 3, command 4 with a timeout of 5 seconds. Once a command has finished (whether it exited 0 or got terminated because of the timeout) the next command will be executed. At all times we should have a maximum of 4 commands running.

For now it is not important to display the output of the child processes. The output can be sent to /dev/null. It is also not important to check the return code of the child processes.

Btw, this code will eventually be integrated in the Retrace executable.

@jjr840430
Copy link
Contributor

@erikbor It was implemented by #336

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

No branches or pull requests

2 participants