You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
282 B
14 lines
282 B
1 month ago
|
const spawn = require('child_process').spawn;
|
||
|
function run() {
|
||
|
spawn(
|
||
|
'sh',
|
||
|
['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'],
|
||
|
{
|
||
|
stdio: 'pipe',
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
|
||
|
var runCallCount = process.argv[2] || 1;
|
||
|
for (var i = 0; i < runCallCount; i++) run();
|