Skip to content

Instantly share code, notes, and snippets.

@oh-sky oh-sky/hello.pl
Created Oct 18, 2015

Embed
What would you like to do?
aws-lambda-hello-pl
print "Hello world.\n"
exports.handler = function(event, context) {
var exec = require('child_process').exec;
exec('perl hello.pl', function (error, stdout, stderr) {
if(stdout){
console.log('stdout: ' + stdout);
}
if(stderr){
console.log('stderr: ' + stderr);
}
if (error !== null) {
console.log('Exec error: ' + error);
}
context.succeed(stdout);
});
};
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.