mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
14 lines
282 B
JavaScript
14 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();
|