multithreading - How do I run the same linux command in more than one tab/shell simulataneously? -
is there tool/command in linux can use run command in more 1 tab simultaneously? want run same command: ./myprog argument1 argument2 simultaneously in more 1 shells (i want increase put code under stress later on) check if mutexes working fine in threaded program.
i kind of looking wall does. can think of using tty's, seems lot of pain if have scale many more shells.
why not like
for in {1..100} ./myprog argument1 argument2 & done
this in case shell bash. can other looping constructs in case of other shells.
Comments
Post a Comment