#!/usr/local/bin/perl -w use strict; $|++; my $pid; foreach $pid (@ARGV) { # We open a filehandle to the psinfo file for that process, # and then select() it for out-of-band data. There will never be # any out-of-band data on this filehandle, so select() will block # until the process exits. # if (! -f "/proc/$pid/psinfo") { warn "$0: no such process: $pid\n"; next; } elsif (! open FILE,"