Skip to content

Instantly share code, notes, and snippets.

@scripting scripting/example.sh
Created Apr 28, 2020

Embed
What would you like to do?
Run an AWS command line script from a Node app (demo)
#!/bin/sh
aws s3 cp example.sh s3://scripting.com/tmp/example.sh --acl public-read
{
"name": "shellexec",
"description": "Test app to run a shell script from a node app",
"author": "Dave Winer <dave@scripting.com>",
"version": "0.4.0",
"scripts": {
"start": "node test.js"
},
"dependencies" : {
"shelljs": "*"
},
"license": "MIT",
"engines": {
"node": "*"
}
}
const shell = require ("shelljs");
shell.exec ("sh example.sh");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.