Created
January 13, 2015 01:06
-
-
Save nside/a9ed833ee0b0d0bf82d5 to your computer and use it in GitHub Desktop.
reads commands to run on stdin and runs them simultaneously
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing, sys, os, fileinput | |
p = multiprocessing.Pool(4) | |
p.map(os.system, sys.stdin.readlines()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment