The BPTD utility has two commands record and playback. The record command records into a file all the various keys that are pressed. The playback command reverses the process and allows the recorded keystrokes to be playback. This process creates a sub process and associates with it a pseudo terminal thus emulating the process. As if a user was actually working at the terminal.
The commands are:
$schedule_bptd record <file_name>
$schedule_bptd playback <file_name>
examples:
$schedule_bptd record sample.rec
$schedule_bptd playback sample.rec