You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing a script which wraps wget with systemu, and I was hoping to pipe the stderr from wget (which includes a download progress bar) to stderr of the user running the script. This happens if one uses simple backticks, but I can't seem to get systemu to show the progress bar as it goes. Perhaps part of the problem is that systemu writes the entire stderr to file before it returns it to the calling script.
Any ideas?
Thanks,
ben
The text was updated successfully, but these errors were encountered:
I don't think that it is possible.
Roughly explained systemu spawns a new process, pipes stderr and stdout into files and then reads them back when the process ends. The way the new process is spawned won't allow you to stream any of the pipes back into the controlling process.
It's the price to pay for platform independence. If you don't need to run your scripts on ix *and Windows then you'll get what you want by using popen3
Hi,
I'm writing a script which wraps
wget
withsystemu
, and I was hoping to pipe the stderr from wget (which includes a download progress bar) to stderr of the user running the script. This happens if one uses simple backticks, but I can't seem to getsystemu
to show the progress bar as it goes. Perhaps part of the problem is that systemu writes the entire stderr to file before it returns it to the calling script.Any ideas?
Thanks,
ben
The text was updated successfully, but these errors were encountered: