I am tring to run phantomjs in nodejs script..
See follows.. It works fine..
var spawn = require('child_process').spawn ;
var phantom_process= spawn('phantomjs' , 'script.js' );
But I need cookie file and tried this.
var spawn = require('child_process').spawn ;
var phantom_process=spawn('phantomjs', ['script.js', ' --cookies-file=./cookie.dat ' ] );
It runs but does not create cookie anywhere ..
How can I run phantomjs with Argument within nodejs ?.