Menu

#146 Use an input file alternatively

1.3.1
open
None
2017-03-04
2015-12-17
No

I'm using systemd to run opendmarc-import periodically. As systemd sets STDIN to /dev/null by default the "<" operator does not work. Also, there currently is no option (afaik) to set STDIN to a file.

http://www.freedesktop.org/software/systemd/man/systemd.exec.html#StandardInput=

I added a --input=/path/to/file parameter to address this problem.

1 Attachments

Discussion

  • A. Schulze

    A. Schulze - 2015-12-17

    I disagree

    systemd fail on a fundamental unix design: stdin -> process -> stdout
    adding code to every program still does not solve the real problem: systemd

    Andreas

     
    • Jonny007-MKD

      Jonny007-MKD - 2016-01-03

      I disagree that systemd is the real problem, but here is not the place for this discussion.

      I don't know why systemd currently does not support using a file as stdin (or not doing anyhing with stdin at all) but reading a file in Perl really is no problem and can be easily implemented.

       
  • Murray S. Kucherawy

    • assigned_to: Murray S. Kucherawy
     
  • Murray S. Kucherawy

    Applied for 1.4.0.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.