Greetings,

"Create" will execute properly (...the script in this context), but the "Wait" at the end doesn't. "Wait" complains about "Can't call method "Wait" on an undefined value at test.par.1.pl line xx.". So I can only assume that the way I store the process object is bad.

I create the process object (1st field of Create) as "$UNIXBuildProc{"$UNIXBuildView"}", instead of "$Process", as in all the example in books and online. Would that be the problem? If that's so, why?

Thanks in advance,
Guillaume

PS
You will need to create the file c:\test.cmd, with 'sleep 2000' as it's content.

------------------------
use Win32::Process;
#
#  Necessary definitions
#
@OS            = ("SunOS.5.7","tru64");
@HNAME         = ("E450B","nucleus3");
%OSMACHINE     = ();
%UNIXBuildProc = ();

$i = 0;
foreach $OSes (@OS)
{
   $OSMACHINE{"build.$OSes.v3"} = $HNAME[$i];
   $i++;
}
# do some stuff ...
foreach $UNIXBuildView (@UNIXLeader)
{
   Win32::Process::Create( $UNIXBuildProc{"$UNIXBuildView"},
                           "c:\\test.cmd",
                           "test.cmd",
                           0,
                           NORMAL_PROCESS,
     &n! bsp;                     "c:\\") || die "Create $!";
}

foreach $UNIXBuildView (@UNIXLeader, "1")
{
   print "\@$UNIXBuildProc{$UNIXBuildView}\@\n";
   $UNIXBuildProc{"$UNIXBuildView"}->Wait(28);
}



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

Reply via email to