cancel
Showing results for 
Search instead for 
Did you mean: 

ttysnoop??

Tom De Boeser
Occasional Contributor

ttysnoop??

Hi,

Is there a ttysnoop or similar for caturing/log active/live input for /dev/console? I need to be able to capture everything to /dev/console



Thanks,



Tom

1 REPLY
Victor BERRIDGE
Honored Contributor

Re: ttysnoop??

Hi,
man script:
script(1) script(1)

NAME
script - make typescript of terminal session

SYNOPSIS
script [-a] [file]

DESCRIPTION
script makes a typescript of everything printed on your terminal. It
starts a shell named by the SHELL environment variable, or by default
/usr/bin/sh, and silently records a copy of output to your terminal
from that shell or its descendents, using a pseudo-terminal device
(see pty(7)).
etc...

All the best

Victor