Record your pipes

Scenario

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

Solution

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

Steps

Steps are as below:

SSH to you friend machine

#ssh username@1.1.1.1

Give command (on your terminal)

#mkfifo xyz; script -f xyz

Your friend (in a different terminal)

#cat xyz

Advertisements