boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - sed? awk? or mak a program?
相关主题
[转载] shell programming and awk questions
Help on 'make'
Re: Help on 'make' & More info!
[转载] 谁能给我看看它的shadow文件?
Re: [转载] any ftp client supporting 'scp' under windows?thx
向大牛们求救
Solaris底下没有类似getopt_long的call?
[转载] 问一个 shell script 和 rsh 的问题
Help About Font Server
recommend a network programming book
相关话题的讨论汇总
话题: cogt话题: 6284话题: awk话题: sed话题: pts
进入Unix版参与讨论
1 (共1页)
c**t
发帖数: 2744
1
ps -aef | grep cogt
cogt 6998 6284 0 13:51:41 pts/38 0:00 server
cogt 6284 6281 0 13:28:04 pts/38 0:00 -ksh
cogt 7071 6284 0 13:53:46 pts/38 0:00 server 20089
cogt 7500 6284 0 14:06:40 pts/38 0:00 grep cogt
~
~
I try to kill -9 6998 7071.

What commandline can do this?
sed? awk? or make a program?
p*a
发帖数: 592
2
ps -aef | grep cogt | grep server | awk '{print $2}' | xargs -i kill -9 {}

【在 c**t 的大作中提到】
: ps -aef | grep cogt
: cogt 6998 6284 0 13:51:41 pts/38 0:00 server
: cogt 6284 6281 0 13:28:04 pts/38 0:00 -ksh
: cogt 7071 6284 0 13:53:46 pts/38 0:00 server 20089
: cogt 7500 6284 0 14:06:40 pts/38 0:00 grep cogt
: ~
: ~
: I try to kill -9 6998 7071.
:
: What commandline can do this?

c**t
发帖数: 2744
3

Thanks a lot!

【在 p*a 的大作中提到】
: ps -aef | grep cogt | grep server | awk '{print $2}' | xargs -i kill -9 {}
1 (共1页)
进入Unix版参与讨论
相关主题
recommend a network programming book
Job Opportunity
如何把一个目录下的文件名全部改成小写?
[转载] How to list the files with specific permission?
shell programming problems
How do i get a list of all computers?
replace a string in all files under a directory?
How to find a file in the deep children directory?
Re: 如何用grep查找子目录下的文件?--stop!
Re: 如何用grep查找子目录下的文件?
相关话题的讨论汇总
话题: cogt话题: 6284话题: awk话题: sed话题: pts