X-Git-Url: http://git.rot13.org/?p=snmp-json.git;a=blobdiff_plain;f=printer-callbacks.pl;h=38a76f7606a3ffc89dd8fc1f77b30639b21fccde;hp=11124fe83a2d9bbc864893149c519eff6293c0f2;hb=24f509d82b933984c9666abe6c2b0d1e6cc2c270;hpb=ce8f3e4fac2beb8e93d1cc137ec4d232dae098ac diff --git a/printer-callbacks.pl b/printer-callbacks.pl index 11124fe..38a76f7 100755 --- a/printer-callbacks.pl +++ b/printer-callbacks.pl @@ -23,7 +23,7 @@ sub iso_datetime { return sprintf "%04d-%02d-%02dT%02d:%02d:%02d", $y+1900, $m, $d, $hh, $mm, $ss; } -my $log_path = join('.', $dir, (split(/T/,iso_datetime,2))[0], 'json'); +my $log_path = join('.', $dir . (split(/T/,iso_datetime,2))[0], 'json'); open(my $log, '>>', $log_path) || die "$log_path: $!"; my $community = 'public';