Skip to content

EachLine only executed after Exec exits? #59

@xxxserxxx

Description

@xxxserxxx

It appears that EachLine() is only called after a pipe is closed. This prevents using script to write daemon scripts.

If there's a way to perform the equivalent of:

dbus-monitor --system "interface=org.freedesktop.DBus.Properties" | \
    while read -r line; do
        printf "DBus event: %s\n" "$line"
    done

would it be possible to get an example? If not, can we change the behavior of EachLine() to process each line as it is received, or add an EachLineForever() function?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions