Hi,
I am having another problem if you can help me:
I have a script with GUI based, when a button is pressed, it will set
"$Port" and does another script call.
I have three ways to do this but none of them are working to my satisfaction
or what
I want to do.
$Port = 7003 ; can be between 7003 - 700x - this depends on the button
pressed on the GUI
my $command = "perl $test_dir/test-win.pl $Port";
1. system($command); #this freezes my GUI - waits the other
script to complete
2. $exp->spawn($command) or die "Cannot spawn $command: $!\n";
# this one works fine if I only spawn once, but won't work for
multiple spawns
with diffrent "$Port"
3. exec "$command"; #This one kill the parent process. I want
the GUI to be available
to process another test ($Port).
Any suggestion please?
SH
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs