#!perl -w use CGI; $c = new CGI(); print $c->header(); $| = 1; ### set up an alarm $timeout = 7*60; # apache normally times out after 5 min print "\n"; # don't need to hide output anymore print $result; <---- do other stuff here ----> exit(); sub install_open_manage { $host = "hostA"; print "\n$count: Checking for local RAC configuration.
"; sleep(1); $result = `psexec \\\\$host -u location\\admin -p password \\\\host01\\OpenManage\\setup_sibar.bat 2>&1`; return $result; }