我很困惑,因为我刚刚推出了这一行:
while sleep 10; do curl http://somewhere:8888 >> out.log; done &
我关闭了会话,用同一个用户(root)再次打开它,我再也看不到这个过程了,我看到了:
ps -ef
但文件“out.log”仍在更新中! 这个过程隐藏在哪里?
谢谢
如果改变方式,则执行重定向:
while sleep 10; do curl http://somewhere:8888; done >> out.log &
您可以轻松找到以下流程:
lsof out.log
这可能也更有效。