SHOW:
|
|
- or go back to the newest paste.
1 | <script> | |
2 | function execute(command) { | |
3 | const exec = require('child_process').exec | |
4 | ||
5 | exec(command, (err, stdout, stderr) => { | |
6 | process.stdout.write(stdout) | |
7 | }) | |
8 | } | |
9 | ||
10 | - | execute('ls') |
10 | + | execute('echo "hello"') |
11 | </script> |