查看某个进程的子进程的所有pid

tr命令相当于sed

ps axu|grep python|grep agent|awk {'print $2'} |tr '\n' ' '

猜你喜欢

转载自maxomnis.iteye.com/blog/2048010