Skip to content
This repository has been archived by the owner on Apr 24, 2018. It is now read-only.

Incremental output #22

Closed
amoffat opened this issue Feb 13, 2012 · 1 comment
Closed

Incremental output #22

amoffat opened this issue Feb 13, 2012 · 1 comment

Comments

@amoffat
Copy link

amoffat commented Feb 13, 2012

I pushed some code to PBS dev earlier today that allowed to do some really cool stuff like this:

from pbs import tail

# runs forever
for line in tail("-f", "/var/log/some_log_file.log", _for=True):
    print line

Or use callbacks:

from pbs import tail

def process_output(line):
    print line

p = tail("-f", "/var/log/some_log_file.log", _out=process_output)
p.wait()

As well as working with stdin dynamically for interactive programs.

I was wondering if there were any plans to support something similar in envoy? If so, I could probably brief you on some of the gotchas. Any plans for incremental output, ken?

@amoffat
Copy link
Author

amoffat commented Feb 13, 2012

Oh, looks like this is a duplicate of #8 from 5 months ago, my mistake :)

@amoffat amoffat closed this as completed Feb 13, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant