in reply to Monitoring a process

I believe you may be over thinking. What do you WANT to do? Scan a list of processes? *I* would do that as something like $retval = `ps ax`; Then look in $retval for your process, and if it's not there, do the actions you're interested in... Too vague?

Replies are listed 'Best First'.
Re^2: Monitoring a process
by vek (Prior) on Feb 02, 2005 at 05:09 UTC

    *I* would do that as something like $retval = `ps ax`;

    Well, seeing as he's prolly on a Win32 box because he mentions "Also, any inputs for writing windows services in perl will be a great help." sort of leaves ps ax out don't you think?

    -- vek --
      That was foolish on part of me, not to mention the platform. I apologize for the error and appreciate the wisdom shown by you monks. Now I realize that Perl not just a language. It is a way of life.

      Having said that, "Can I use perl for embedded application?" I mean I am asking from efficiency point of you.

      While debugging application I find that "this" pointer thing is present in Perl also. But one thing surprised me, Virtual function.

      In C++ there is a particular situation where we have to think about Virtual Function, while in Perl I am in dark about it. Can you guys refer me to some links which tells me in structures manner about Virtual Table and Virtual Pointer in Perl , so that I can look forward perl as a language to implement COM classes.

      cheers Rock