meteorJS call a shell command from the server

meteor, shell

Solution

If you take the calls to require from the sample and prefix them with

var sys = __meteor_bootstrap__.require('sys');

it should work.

Problem

I'm using MeteorJS. I'd like to call a bash command from the javascript server side. This seems possible with nodeJS: http://www.dzone.com/snippets/execute-unix-command-nodejs However, I can't find something similar with meteorJS. I'd like something like that : ``` if(Meteor.isServer){ ... exec("myCommand"); } ```

Original source