summaryrefslogtreecommitdiff
path: root/rhimport-wl
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2012-01-20 22:54:46 (GMT)
committerChristian Pointner <equinox@helsinki.at>2012-01-20 22:54:46 (GMT)
commitb0e2a62cbc92cac628ff8d3565b2e310aad0c4c1 (patch)
treeb2f59ab1f9d0cc4f1820fdcf3eb13d22dc3aa4b9 /rhimport-wl
parent00b024abb5c021d2921249e152bf9d844326b92a (diff)
moved pv add note to rhimport modul
git-svn-id: https://svn.helsinki.at/rhimport/trunk@117 7c65635b-ec39-4f67-a626-873dbafdd612
Diffstat (limited to 'rhimport-wl')
-rwxr-xr-xrhimport-wl20
1 files changed, 1 insertions, 19 deletions
diff --git a/rhimport-wl b/rhimport-wl
index cf51b73..6c2d314 100755
--- a/rhimport-wl
+++ b/rhimport-wl
@@ -100,25 +100,7 @@ for my $entry ($feed->entries) {
my @tomorrow = Date::Calc::Add_Delta_Days($today[0], $today[1], $today[2], 1);
push(@PV_SCRIPT, sprintf("%04d-%02d-%02d", $tomorrow[0], $tomorrow[1], $tomorrow[2]));
- my ($reader, $writer, $error ) = ( new IO::Handle, new IO::Handle, new IO::Handle );
- $writer->autoflush(1);
- local $SIG{CHLD} = 'DEFAULT';
- my $pid = open3($writer, $reader, $error, @PV_SCRIPT);
- binmode($reader, ":utf8");
- binmode($writer, ":utf8");
- binmode($error, ":utf8");
- print $writer $sum_title . "\n" . $sum_text;
- close $writer;
- waitpid $pid, 0;
- if ( $? >> 8 ) {
- print "\n\nPV: adding note returned non-zero value\n";
- print "STDERR:\n" . join('', <$error>) . "\n";
- print "STDOUT:\n" . join('', <$reader>) . "\n";
- print "Ignoring failed headline import!\n";
- } else {
- print join('', <$reader>) . "\n";
- print join('', <$error>) . "\n";
- }
+ rhimport::pv_add_note($sum_title, $sum_text, @PV_SCRIPT);
print "\n";
}
}