- 论坛徽章:
- 0
|
下面这个命令大家都看的明白的啦,可是我在不同平台实验的时候出现的结果不一样啊!!!
AIX最稳定,一直是这个数据:
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 172120 458814 0 15:15:43 pts/1 0:00 awk {print $0}
root 458814 417860 3 15:14:20 pts/1 0:00 bash
HP-UX/Solaris/Suse上面多运行几次,出现好多个bash,谁可以解释一下呢~~~~
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 8681 3312 0 01:14:53 pts/0 0:00 bash
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8682 3312 0 01:14:53 pts/0 0:00 bash
root 8683 3312 0 01:14:53 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8688 3312 1 01:14:54 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 1 18:07:03 pts/0 0:00 bash
root 8693 3312 0 01:14:55 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 8698 3312 1 01:14:55 pts/0 0:00 awk {print $0}
root 3312 3299 1 18:07:03 pts/0 0:00 bash
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 8700 3312 0 01:14:56 pts/0 0:00 bash
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8702 3312 0 01:14:56 pts/0 0:00 bash
root 8703 3312 0 01:14:56 pts/0 0:00 awk {print $0}
root 8701 3312 1 01:14:56 pts/0 0:00 bash
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 1 18:07:03 pts/0 0:00 bash
root 8708 3312 0 01:15:02 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8713 3312 1 01:15:03 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 1 18:07:03 pts/0 0:00 bash
root 8718 3312 1 01:15:03 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8723 3312 0 01:15:04 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 0 18:07:03 pts/0 0:00 bash
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8733 3312 1 01:15:06 pts/0 0:00 awk {print $0}
bash-3.2# ps -fe | grep $$ | grep -v ps | grep -v grep | awk '{print $0}'
root 3312 3299 0 18:07:03 pts/0 0:00 bash
root 8738 3312 0 01:15:08 pts/0 0:00 bash |
|