/usr/share/doc/libnetsds-perl/examples/test_edr.pl is in libnetsds-perl 1.301-3.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | #!/usr/bin/env perl
use warnings;
use strict;
use lib '../lib';
use NetSDS::EDR;
use Data::Dumper;
my $edr = NetSDS::EDR->new(filename=>'/tmp/edrfile');
#print NetSDS::EDR->errstr;
print Dumper($edr);
$edr->write(
{
msgid => '123123@system.name',
src_addr => '1234@mts',
dst_addr => '380501234567@mts',
tm => time,
},
{
msgid => '123123@system.name',
src_addr => '1234@kyivstar',
dst_addr => '380672222222@ks',
tm => time,
},
);
1;
|