I am having trouble to export result to output file from the following command for speed test,
dd if=/dev/zero bs=1024 count=1048576 | ssh [email protected] 'cat > /dev/null'
I have tried,
dd if=/dev/zero bs=1024 count=1048576 | ssh [email protected] 'cat > /dev/null' >> result.txt
dd if=/dev/zero bs=1024 count=1048576 | ssh [email protected] 'cat > /dev/null' >> result.txt 2>&1
dd if=/dev/zero bs=1024 count=1048576 | ssh [email protected] 'cat > /dev/null' 2>> result.txt
dd if=/dev/zero bs=1024 count=1048576 | ssh [email protected] 'cat > /dev/null' | tee -a result.txt 2>&1
result.txt was created but it's empty.
I guess I am having trouble of pipeline.
Thank you! Philip