4 ms·
How can a lambda be a shell? I thought they were meant to be safe functions for compute.
by kyberias 8y ago
How can a lambda be a shell? I thought they were meant to be safe functions for compute.
- o_____________o 8y agoProbably just running exec(input) in whatever language the lambda is in
- mcintyre1994 8y agoThey are just functions - but Node lets you run external scripts. The relevant bit of source (you can view it all with cat index.js) is: ``` const result = childProcess.execSync(event.body.command).toString(); console.log(result); var response = {result: result}; context.done(null, response); ``` So it's not really a shell itself, but every time you send a command on the website it runs it, returns you the response, and the website adds that response to its shell GUI.