Hi to all,
I want to copy the output of pacman -Syu to terminal and to files. Please do not ask why - this is not relevant I want to see in terminal everything as before: stdout, stderr and the hashtag progress bars of downloading / installing. The stdout should be written to /tmp/out.log and the stderr to /tmp/err.log
I tried this approach:
pacman -Syu 2> >(tee -ia /tmp/err.log) 1> >(tee -ia /tmp/out.log)
That is working NEARLY perfect. I can see all text output as before, and stdout and stderr are written correctly to the files. But the hashtags (progressbars) are vanished on terminal and do not appear in out.log?! I am not sad that they do not appear in the logfile (it would not bother if they would appear there) - but I am sad that they vanish on terminal. I have thought much but I cannot find any explanation and not a solution. Where are the hashtags if not in stdout and not in stderr? In stdhashtag ? Or pulls tee its fuel by eating hashtags ? I am using bash.
I would be happy for any idea how to get the hashtags on terminal back and the rest working as before…