shell2http icon indicating copy to clipboard operation
shell2http copied to clipboard

Live output / flush

Open amenk opened this issue 8 years ago • 8 comments
trafficstars

For longer running commands, such as wget or pv with progress indication, is it possible to flush output and make it visible to the webbrowser while running?

amenk avatar Jul 22 '17 14:07 amenk

In the current code base this is difficult to implement. Refactoring required.

for me: can be use os/exec.StderrPipe()/StdoutPipe() instead of CombinedOutput()

msoap avatar Jul 23 '17 18:07 msoap

That would be definitely a benefit, is it planned for the future or no chance?

alanmilinovic avatar Mar 30 '19 08:03 alanmilinovic

Planned but unfortunately not quickly.

msoap avatar Mar 30 '19 09:03 msoap

Just commenting here to follow this thread.. interested on this implementation

alexandrefelipemuller avatar Nov 08 '19 15:11 alexandrefelipemuller

@msoap Do you think you'll ever get to this (It's been 5 years already)? And if not, do you have any other project suggestion that may have this working?

thebiblelover7 avatar Jun 21 '22 09:06 thebiblelover7

@thebiblelover7 unfortunately, not yet

do you have any other project suggestion that may have this working?

it depends on your task, but maybe it will help you https://github.com/joewalnes/websocketd

msoap avatar Jun 21 '22 12:06 msoap

@msoap ok, thanks for that suggestion! I'll definitely check that out!

Also, thanks for this awesome project, I'm really putting some good use to it!

thebiblelover7 avatar Jun 21 '22 12:06 thebiblelover7

This would definitely be a great addition. I'll just add that although this could be combined with the -timeout argument, it could be that we need a different timeout on these requests, since they are, well... longer...

I would also suggest you to set up sponsorship. This is a really helpful project and would certainly benefit from some love.

goncalo-oliveira avatar Sep 15 '23 11:09 goncalo-oliveira