Search Results

Search: Posts Made By: muthubharadwaj
11,073
Posted By muthubharadwaj
Is there an alternative to "tee" with "pipeline"...
Is there an alternative to "tee" with "pipeline" to capture outputs and at the same time view on the stdout device? Thanks again for the clear explanation, helped me a lot.
11,073
Posted By muthubharadwaj
Your comment "all commands except the last are...
Your comment "all commands except the last are executed in a sub-shell" explains the behavior, which is what I though though was not sure. What exactly is the "last one", the tee command itself, the...
2,120
Posted By muthubharadwaj
You can use <Command> | tee -a <logfile>. You...
You can use <Command> | tee -a <logfile>. You will be able to see output of <Command> on your stdout and it will also be captured in the file <logfile>. If you use -a with tee it causes the output to...
11,073
Posted By muthubharadwaj
Trouble with tee command to capture script outputs
function GetInput
{
print -n "Input"
read input
export INPUT=$input
}
export COMMAND="GetInput"

$COMMAND
echo "$INPUT"

$COMMAND | tee -a Log.log
echo "$INPUT"

The...
Showing results 1 to 4 of 4

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