in reply to Checking a running daemon

I think the trouble is in your regexp. Instead of
if ($psaxline =~ "$process") {
try
if ($psaxline =~ /$process/) {

-Mark