mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-15 02:47:08 +01:00
13 lines
282 B
JavaScript
13 lines
282 B
JavaScript
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();
|