You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pardon my ignorance. I can't figure out how to actually connect to the spawned server. I've been previously using (without nodejs) xvfb-run -a some-binary – how would I translate that to this library?
I've tried the following
varheadless=require('headless'),varexec=require('child_process').exec;headless(function(err,childProcess,servernum){exec('xvfb-run -n '+servernum+' some-binary',error,stdout,stderr){console.log('stdout:',stdout);console.log('stderr:',stderr);// kill the xvfb server - is this the correct place to do this?childProcess.kill();});});
But this only emits "error: Xvfb failed to start", as if servernum were invalid.
The text was updated successfully, but these errors were encountered:
Pardon my ignorance. I can't figure out how to actually connect to the spawned server. I've been previously using (without nodejs)
xvfb-run -a some-binary
– how would I translate that to this library?I've tried the following
But this only emits
"error: Xvfb failed to start"
, as if servernum were invalid.The text was updated successfully, but these errors were encountered: