Search Results

Search: Posts Made By: jim mcnamara
22,519
Posted By jim mcnamara
Unless you are using bash the pipe causes the...
Unless you are using bash the pipe causes the line of code to return the status of tee.
With bash, look up PIPESTATUS examples here:
Internal Variables...
22,519
Posted By jim mcnamara
s1.sh 2>&1 | tee log1.txt 1> log2.txt
s1.sh 2>&1 | tee log1.txt 1> log2.txt
22,519
Posted By jim mcnamara
myscript.sh | tee outputfile1 1> outputfile2 ...
myscript.sh | tee outputfile1 1> outputfile2


you get two identical output files - is that what you mean?
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy