Solved

Win32::Process, GetProcessId() not being acknowleged...

Posted on 2000-03-30
2
426 Views
Last Modified: 2008-02-20
Hey !   Has anyone had any problems using Win32::process ?
Specifically, when I try something like

     Win32::Process::Create
                               ($ProcessObj,
                                "c:\\windows\\command\\start.exe",
                                "start /m perl " . $command,
                                0,
                                NORMAL_PRIORITY_CLASS,
                                ".")|| die ErrorReport();
         
         $pid = $ProcessObj->GetProcessId() ;

It complains :

Your vendor  has not defined Win32::process macro GetProcessId, used at inv.pl blah blah blah.

To which I can only observe :

Wasssssssssssssssssup ????
0
Comment
Question by:klestes
2 Comments
 
LVL 25

Accepted Solution

by:
clockwatcher earned 30 total points
ID: 2676627
Try this:

$pid = $ProcessObj->GetProcessID();

Instead of this:

$pid = $ProcessObj->GetProcessId();

-- Case-sensitivity.  Got to love it. ;-)
0
 

Author Comment

by:klestes
ID: 2680639
Thanks clockwatcher !

Now if only those damn voices would stop saying "you did use the -w flag, didn't you ?"
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

On Microsoft Windows, if  when you click or type the name of a .pl file, you get an error "is not recognized as an internal or external command, operable program or batch file", then this means you do not have the .pl file extension associated with …
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question