main
|
Last change
on this file was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
282 bytes
|
| Line | |
|---|
| 1 | const spawn = require('child_process').spawn;
|
|---|
| 2 | function run() {
|
|---|
| 3 | spawn(
|
|---|
| 4 | 'sh',
|
|---|
| 5 | ['-c', 'node -e "setInterval(() => console.log(`running`), 200)"'],
|
|---|
| 6 | {
|
|---|
| 7 | stdio: 'pipe',
|
|---|
| 8 | }
|
|---|
| 9 | );
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | var runCallCount = process.argv[2] || 1;
|
|---|
| 13 | for (var i = 0; i < runCallCount; i++) run();
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.