linux运行php挂后台不执行

因为PHP编译的时候安装了readline 模块。默认会接收输入值  所以会挂起

如果在readline模式 不输入值 可以用

php somescript.php > /dev/null