#直接访问Unix进程表,类似ps command。 #!/usr/bin/perl use strict; use Proc::ProcessTable; my $pt = new Proc::ProcessTable; foreach ( reverse sort @ {$pt->table} ) { print $_->pid, " => "; print $_->cmndline, "\n"; } exit 0;
by: 发表于:2017-09-11 11:52:51 顶(0) | 踩(0) 回复
??
by: 发表于:2017-09-11 11:52:51 顶(0) | 踩(0) 回复
??
回复评论