in reply to Problem with monitoring running tasks

have you tried running the program in debug mode from the command line ?
$perl -d program.pl

Once you are in debug mode, type h to see the shortcut commands like x and V to display the data.
And as the monk said, try to isolate the perl script to run with one of your X tests , in debug mode.
perl will never let you down :D

Replies are listed 'Best First'.
Re^2: Problem with monitoring running tasks
by cariddiEMC (Initiate) on Oct 23, 2014 at 15:45 UTC

    I have tried debugging it, but the script forks off copies of itself and I really need to debug the forked copy. Is there some way to do that?

      this is not strictly a perl experience i can say i have had, but are you certain that the forked process which runs in the background can be terminated by your approach.
      u might have to start from scratch and check if a running process terminates via your script after the time alloted to it.
      then check back with a working script how to enhance it as per your requirement. Cheers. also check Debugging Perl scripts which use fork()