+ -
当前位置:首页 → 问答吧 → 后台进程为什么不显示结果啊?

后台进程为什么不显示结果啊?

时间:2011-08-08

来源:互联网

[code=C/C++][/code]
[root@localhost work]# ps -o pid,ppid,pgid,sid,comm &
[3] 30667
[root@localhost work]# 

[3]+ Stopped ps -o pid,ppid,pgid,sid,comm
[root@localhost work]# fg % 3
ps -o pid,ppid,pgid,sid,comm


Signal 18 (CONT) caught by ps (procps version 3.2.7).
Please send bug reports to <[email protected]> or <[email protected]>
[root@localhost work]# 

为什么显示不出ps -o pid,ppid,pgid,sid,comm的结果阿,在后台运行也应该可以看到结果阿?

作者: haotiantoping   发布时间: 2011-08-08

是不是与shell的选项有关
你后台执行任何一个命令都这样吗?

作者: justkk   发布时间: 2011-08-08