#ALL PREVIOUS CODE HERE.... #Now to Opendeploy the files to the workarea my $odCmd = "$IWHOME/OpenDeployNG/bin/iwodstart mi/transfer_config/transfer_config_local -k branch=$branch"; defined(my $childpid = fork) or die "Cannot fork: $!"; if ($childpid) { #This is the Parent process sleep(5); # This makes sure the OD is running before it tries to run the iwodserverstatus cmd my $flagSet = 1; while ($flagSet) { print ". "; my $cmdResult = `$IWHOME/OpenDeployNG/bin/iwodserverstatus 2>&1`; if ($cmdResult !~ m|mi/transfer_config/transfer_config_local|i) { print "<br>Finished Running<br>"; $flagSet = 0; } sleep(20); } } else { #this is the child process my $odResult = `$odCmd 2>&1`; exit(0); } #MORE CODE CONTINUES HERE
Edited by Jeremy on 09/05/05 06:34 AM (server time).