git ssb

0+

cel-desktop / ssb-pkg



Tree: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f

Files: 4c58f1c6c3ddb86a97f27f0c84681d201ef1f75f / test / test-50-spawn / test-spawn-c.js

393 bytesRaw
1#!/usr/bin/env node
2
3'use strict';
4
5if (process.platform !== 'win32') return;
6var spawn = require('child_process').spawn;
7
8var child = spawn(
9 'cmd.exe', [
10 '/s', '/c', '"node ' + require.resolve('./test-spawn-c-child.js') + ' argvx argvy"'
11 ], { stdio: 'inherit', windowsVerbatimArguments: true }
12);
13
14child.on('exit', function (code) {
15 console.log('Child exited with code', code);
16});
17

Built with git-ssb-web