I have two shells running in my Linux. Shell A (pid = 1946) and shell B. In shell B, it runs a program which keeps reading from /proc/1946/fd/1 and prints out what it gets.