git ssb

0+

cel-desktop / ssb-pkg



Tree: 65191f9a9664f013ebe726bb95a1a54b086e1bd5

Files: 65191f9a9664f013ebe726bb95a1a54b086e1bd5 / test / test-50-spawn / test-spawn-d.js

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

Built with git-ssb-web