I'm using Mocha for testing my apps. Currently, I'm using Makefiles, but I want to switch to Cakefiles. When I run my test through Cake, the colors from Mocha are not displayed on console.  Here's an example:  task 'test', 'te...
I have this regex variable:  var regexp = new RegExp(RegExp.quote(myExpression) + '\\b', 'g');   which searches for expression that has a space after it. (RegExp.quate() I got from this How to escape regular expression in javascript?)...
In Node.js I'm using the exec command of the child_process module to call an algorithm in Java that returns a large amount of text to standard out which I then parse and use. I'm able to capture it mostly, but when it exceeds a certain number...
POSIX systems expose family of exec functions, that allow one to load something maybe different into current process, keeping open file descriptors, process identifier and so on.  This can be done for variety of reasons, and in my case this is bootst...
I have a task that registred in grunt config:  grunt.registerTask('test_Branches',          'Run Branches check on windows',       require('PATH').check);   And in my branches.test.js I have method check():  this.check = funct...
I need in node.js function  result = execSync('node -v');   that will synchronously execute the given command line and return all stdout'ed by that command text.     ps. Sync is wrong. I know. Just for personal use.   UPDATE  Now we have...
This is the code to execute        cp.exec("cc -Wall /tmp/test.c -o /tmp/test", function(e, stdout, stderr) {         if (e) {             var errorstr = "Compilation failed with the following error"+ e.message.toString()...
Suppose you want to launch a (random) process for every folder in a list in a short code:  var exec = require('child_process').exec; var folders = [...]; // a list from somewhere  _.each(folders, function(folder) {     exec("tar cvf "...
I am performing an image magick identify command via nodejs child_process.exec. and using the string returned from stdout in my script.  Everything works fine but the call prints the stdout msg on console, if the server is not restarted and the conso...
This is a weird one. I am using the ExecWB method to create a PrintPreview window. Most of the time the print preview appears correctly. But sometimes it shows a blank page and that is all. Has anyone seen this before? The problem appears to be isola...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.