Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function execute(command) {
- const exec = require('child_process').exec
- exec(command, (err, stdout, stderr) => {
- process.stdout.write(stdout)
- })
- }
- execute('ls')
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement