Because when I opened Perl command using 'open' command the script start to run and I can add more manipulation on it like timer and etc. Please advicemy $buildCMD = "$sshCMD \"perl $VM_HOME/X.pl " . "-u $ST_USER " . "-p $ST_PASSWORD " . "-v $ST_VIEW " . "-l $ST_LABEL\""; print "-I- $buildCMD"; open (CMD, "$buildCMD | ") or die "\n-E- system '$buildCMD' failed: ($ +?) ($!)"; while (<CMD>) { print "$_\n"; sleep 1; $counter++; if ($counter < 18) { print "\n-E- TimeOut.\n"; exit 1; } }
In reply to Running perl script with open command by Noame
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |