A Jake task executes a long-running system command. Another task depends on the first task being completely finished before starting. The \'exec\' function of \'child_process\'
Just for future reference, I have a synchronous exec module with no other dependencies.
Example:
var allsync = require("allsync");
allsync.exec( "find /", function(data){
process.stdout.write(data);
});
console.log("Done!");
In the above exampale, Done
is only printed after the find
process exists. The exec
function essentially blocks until complete.