Skip to content
Advertisement

issue when saving script output to file

I have an install script that I want to save its output to a file, I have tried ./install.sh 2>&1 | tee /tmp/install.log

it writes to the file, but my issue is this:

  • script outputon console without tee
JavaScript
  • script output on console and file with tee
JavaScript

Loading layers info is not printed at all, neither on console nor file, any idea why this happens?

Advertisement

Answer

Issue solved with:

script –return –quiet -c “./install.sh 2>&1” /tmp/install.log

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement