phantomjs with nohup not working

柔情痞子 提交于 2019-12-04 18:49:24
jfgrang

Had the same problem with 1.9.8 and casperjs 1.1.0-beta3. I needed to make the process turn in background so instead of nohup-ing what I did is launched and detached the process :

<Ctrl+Z>
bg
disown %1

Seems phanomjs needs input, that works well:

phantomjs script.js > log 2>&1 < /dev/null &

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!