Changeset 24945 for trunk/arclog/arclog.pl
- Timestamp:
- Jul 30, 2009, 11:57:40 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/arclog/arclog.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/arclog/arclog.pl
r24827 r24945 19 19 use Pod::Usage qw( pod2usage ); 20 20 21 my ($ email);21 my ($debug, $email); 22 22 23 23 GetOptions( 24 'email|s=s' => \$email, 24 'debug|d' => \$debug, 25 'email|s=s' => \$email, 25 26 ) || pod2usage( 2 ); 26 27 … … 176 177 = @$rec{qw( host time device event elapse_time errors )}; 177 178 # pack record 178 $query->execute("$host|$time|$device|$event|$elapse_time|$errors") 179 my $rec = "$host|$time|$device|$event|$elapse_time|$errors"; 180 $query->execute($rec) 179 181 or die "database error: $!"; 182 warn "inserting $rec\n" if $debug; 180 183 181 184 # do not print filtered records
Note:
See TracChangeset
for help on using the changeset viewer.
