summaryrefslogtreecommitdiff
path: root/utils/notify_short
diff options
context:
space:
mode:
Diffstat (limited to 'utils/notify_short')
-rw-r--r--utils/notify_short/listener.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/notify_short/listener.pl b/utils/notify_short/listener.pl
index 37f31d38..dae23d0a 100644
--- a/utils/notify_short/listener.pl
+++ b/utils/notify_short/listener.pl
@@ -30,7 +30,7 @@ while (1){ # loop infinitely
sleep $cycle_delay;
}
sub on_notify {
- open (MAIL, "| $sendmail");
+ open (MAIL, "|-", $sendmail);
$sth = $dbh->prepare("
SELECT partnumber, description, onhand, rop FROM parts
WHERE onhand <= rop