Skip to content

Tag: tee

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 script output on console and file with tee Loading layers info is not printed at all, neither on cons…

Using tee command with soft linked file

I have a script start.sh which runs another script run.sh. run.sh starts my executable. I wanted to record what run.sh does and I used a tee command to log it into a file loglink, start.sh: loglink is a soft linked file. I have a logic where I have 3 log files log1.txt log2.txt log3.txt, I need each file to h…