Israel Fruchter
Israel Fruchter
I think something like this would do the trick: ```python def write_to_file(msg): with open('output.log', 'a') as f: f.write(msg) interact = SshClientInteraction(client, output_callback=write_to_file) ```
@SamDanielThangarajan can you have a test demonstrating this in https://github.com/fgimian/paramiko-expect/blob/master/test/test_paramiko_expect.py ?
> I also hit this message and I just saw where this is coming from > > ``` > # avoids paramiko hang when recv is not ready yet <...
> Thank you. Putting it as a list did execute normally, (my apologies for not looking at code), but it is not matching the current_output and timing out, though, doing...
can you guy share an example ?
@oskrdt yep the design of it doesn't take into account very big output. it should be kind of cyclic buffer. Anyhow PRs are welcomed
can you supply more information ?
we can maybe turn it into cyclic buffer, and you'll need to define its size
The issue is that currently we cached all output, and doing a regex on all of it. at a certain size it becomes an issue. I.e. running it for day...
@diegostammer this package is quite old, when before there was type annotation available. If you want to give a contribution and add those extra documentation files, PRs are welcomed