- or download this
#!/usr/bin/perl
use warnings;
...
close INFILE;
kill -9 => $pid;
- or download this
# ./test.pl
This is parent 29307
This is child pid 29309
#
- or download this
# ps -ef|grep urandom
root 29309 1 0 00:53 pts/2 00:00:00 sh -c cat /dev/urandom >
testfile
root 29310 29309 99 00:53 pts/2 00:00:12 cat /dev/urandom