in reply to Giving status of a file..

I think kill is the way to go... If you have a bunch of PIDs, and want to see if they are running, you can do:

# untested my @proc_ids = (445, 320832, 38393, 327334); my @running = kill 0, @proc_ids;

kill won't kill the processes here. It will just return the process ID number if it is running.

Otherwise, you might want to check out Proc::Simple (which I suspect just uses kill behind the scenes, but don't know). Is there a particular reason you don't want to use kill?

stephen

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.