export pid and port to /tmp/phantomjs.pipe