On Oct 8, Anthony J Segelhorst said:

>@temparray = `"$lcf_tools\\ntprocinfo |$lcf_tools\\grep $process"`;

Lose the double-quotes.  You want `$lcf_tools\\ntprocinfo ...`.  The
double quotes are probably not helping.

>        foreach $temp (@temparray){
>                ($pid,$name) = split(" ", $temp);
>                print LOGFILE "The process named $name is running\n";
>                if ($name == ""){

You don't have warnings turned on, so you're not warned that you're using
== with a STRING.  Don't use == and != with strings, use eq and ne.

  if ($name eq "") { ... }

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.
[  I'm looking for programming work.  If you like my work, let me know.  ]


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to