Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

process/subprocess

2 views
Skip to first unread message

Ron Nadbornik {P29557}

unread,
Sep 26, 2000, 3:00:00 AM9/26/00
to
Wanted: a (recursive) perl module to list process and any subprocesses
it may have spawned.

Hugo van der Sanden

unread,
Sep 27, 2000, 3:00:00 AM9/27/00
to
Ron Nadbornik {P29557} wrote:
>
> Wanted: a (recursive) perl module to list process and any subprocesses
> it may have spawned.

Like this? Sorry I couldn't keep it under 80 characters; I'm sure
others can do better:

perl -le 'push@{$h{$_->[2]}},$_->[1]for map[split],`ps -eaf`;@_=@ARGV;push@ARGV,@_=map$_?@$_:(),@h{@_}while@_;print"@ARGV"' 1

Hugo

0 new messages