in reply to getuptime script
should bewarn ("ERROR for $host: $error\n") unless (defined($session));
that way if $session is not defined, you warn and then move on to next $host.unless( $session ){ warn ("ERROR for $host: $error\n") ; next; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: getuptime script
by deepupower123 (Initiate) on Oct 30, 2008 at 14:01 UTC |