Skip to content
Advertisement

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 console nor file, any

crontab tee command doesn’t write stdout into txt file, instead clears it [python script] [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question

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 have

Advertisement