Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Andris Reinman committed Feb 16, 2012
1 parent bc5f059 commit ba801f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion article-fetch.js
Expand Up @@ -13,7 +13,7 @@ function articleFetch(url, callback){

console.log("Cmd: "+"phantomjs "+phscript+" "+url+" "+fpath);

var cmd = spawn("phantomjs", {env: {'DISPLAY': ':0'}}, [phscript, url, fpath]);
var cmd = spawn("phantomjs", [phscript, url, fpath], {env: {'DISPLAY': ':0'}});

cmd.stdout.on('data', function (data) {
console.log('stdout: ' + (data || "").toString().trim());
Expand Down

0 comments on commit ba801f1

Please sign in to comment.