source: node_modules/pstree.remy/tests/fixtures/index.js@ 81bc7da

finki-main main
Last change on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago

Initial commit

  • Property mode set to 100644
File size: 282 bytes
RevLine 
[81bc7da]1const spawn = require('child_process').spawn;
2function run() {
3 spawn(
4 'sh',
5 ['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'],
6 {
7 stdio: 'pipe',
8 }
9 );
10}
11
12var runCallCount = process.argv[2] || 1;
13for (var i = 0; i < runCallCount; i++) run();
Note: See TracBrowser for help on using the repository browser.