Noame has asked for the wisdom of the Perl Monks concerning the following question:
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; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Running perl script with open command
by almut (Canon) on Apr 20, 2009 at 13:05 UTC |