[tee] How to display message on the console and output to the file
1. input some message to /dev/ttyUSB0
echo "show" > /dev/ttyUSB0
2. cat the message from /dev/ttyUSB0 and output file to /home/happy/tftp/test12345
cat -v < /dev/ttyUSB0 | tee /home/happy/tftp/test12345
Reference :
0 意見:
張貼留言