We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can I read the output of a process that hasn't (and never will) exit/end?
Consider the following example:
using OutputCollectors script = raw""" declare -i i=0 while TRUE do i+=1 echo "Line #$i" sleep 1 done """ oc = OutputCollector(`sh -c $script`)
Unsurprisingly, running tail(oc) for instance will never return.
tail(oc)
Is there any way to retrieve the output "up to now"?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How can I read the output of a process that hasn't (and never will) exit/end?
Consider the following example:
Unsurprisingly, running
tail(oc)
for instance will never return.Is there any way to retrieve the output "up to now"?
The text was updated successfully, but these errors were encountered: