Record your pipes


Lets assume you are going to trouble shoot you friend LINUX box by ssh from your house or office or any place, but your friend want to see which commands you are typing/using to trouble shoot and what are the results of those commands


You can record your command line session to a named pipe.


Steps are as below:

SSH to you friend machine

#ssh username@

Give command (on your terminal)

#mkfifo xyz; script -f xyz

Your friend (in a different terminal)

#cat xyz