Thanks. Both suggestions sound like great ideas.
I would like to use --pid with tail, but the process just shows up as "perl" which is pretty generic.
Here's what I see from top:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5118 root 20 0 195m 155m 2300 R 69 1.9 2:50.70 perl
This gives the correct result, but what if other perl scripts are running? Is there a way to pin this down to the specific perl script I'm running?
Looking at the other option (pipe the tail -f to grep), is there a way that I can still see the output from tail and also use this method?