Hi
there are 3 possibilities of reponse when i run a command using
$host->print($comando);
$host->waitfor(
1- '/CONFIRM COMMAND EXECUTION: Y\/N \? /i'
or 2- '/DO YOU WANT TO WAIT FOR RECOVERY OR EXECUTE PARALLEL WITH CURRENT JOBS/i'
or 3- '/< /i'
)
for 1 and 2 I must to print $host->print("Y");
for 3 I must to wait for '/< /i' and continue with the next line.
This is my programm
while ( $linea ne "" ){
chomp($linea);
if ( $linea =~ /^Z/ ) {
$comando=$linea;
print $comando."\n";
$host->print($comando);
if ( $host->waitfor('/CONFIRM COMMAND EXECUTION: Y\/N \? |DO YOU WANT TO WAIT FOR RECOVERY OR EXECUTE PARALLEL WITH CURRENT JOBS/i') ) {
$host->print("Y");}
else { $host->waitfor('/< /i') }
}
$linea=<FILE_ACC>;
}
any suggestion
Thanks
Malpa
there are 3 possibilities of reponse when i run a command using
$host->print($comando);
$host->waitfor(
1- '/CONFIRM COMMAND EXECUTION: Y\/N \? /i'
or 2- '/DO YOU WANT TO WAIT FOR RECOVERY OR EXECUTE PARALLEL WITH CURRENT JOBS/i'
or 3- '/< /i'
)
for 1 and 2 I must to print $host->print("Y");
for 3 I must to wait for '/< /i' and continue with the next line.
This is my programm
while ( $linea ne "" ){
chomp($linea);
if ( $linea =~ /^Z/ ) {
$comando=$linea;
print $comando."\n";
$host->print($comando);
if ( $host->waitfor('/CONFIRM COMMAND EXECUTION: Y\/N \? |DO YOU WANT TO WAIT FOR RECOVERY OR EXECUTE PARALLEL WITH CURRENT JOBS/i') ) {
$host->print("Y");}
else { $host->waitfor('/< /i') }
}
$linea=<FILE_ACC>;
}
any suggestion
Thanks
Malpa