博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2010年8月27日

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--importsys,osdefmain():"""Ademodaemonmainroutine,writeadatestampto/tmp/daemon-logevery10seconds."""im... 阅读全文

posted @ 2010-08-27 22:07 月光林地 阅读(2814) 评论(0) 推荐(0) 编辑

摘要: 有时候因为一些情况,需要把 linux 下符合某一项条件的所有进程 kill 掉,又不能用 killall 直接杀掉某一进程名称包含的所有运行中进程(我们可能只需要杀掉其中的某一类或运行指定参数命令的进程),这个时候我们需要运用 ps, grep, cut 和 kill 一起操作。ok,下面给出具体的参考:ps -ef|grep LOCAL=NO|grep -v grep|cut -c 9-15|... 阅读全文

posted @ 2010-08-27 22:01 月光林地 阅读(28545) 评论(1) 推荐(6) 编辑