/[mon-modules]/sap.monitor
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sap.monitor

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by dpavlin, Wed Aug 7 09:57:59 2002 UTC revision 1.11 by dpavlin, Mon Oct 28 08:36:48 2002 UTC
# Line 62  foreach (@config) { Line 62  foreach (@config) {
62                  my $output;                  my $output;
63                  my $sys_id;                  my $sys_id;
64                  for(my $i=0; $i<$repeat; $i++) {                  for(my $i=0; $i<$repeat; $i++) {
65                          $output = `$SAPINFO trace=0 ashost=$ashost sysnr=$sysnr`;                          eval {
66                                    local $SIG{ALRM} = sub { die "timeout\n"; };
67                                    alarm 30; # wait for sapinfo to finish
68                                    $output = `$SAPINFO trace=0 ashost=$ashost sysnr=$sysnr`;
69                            };
70                            alarm 0; # turn alarm off
71                          undef $sys_id;                          undef $sys_id;
72                          if ($output =~ m/System\s+ID\s+(\w+)/i) {                          if ($output =~ m/System\s+ID\s+(\w+)/i) {
73                                  $sys_id = $1;                                  $sys_id = $1;

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.26