Sometimes I have users that ssh or telnet into a server, open some records on a db, then leave for lunch (potentially locking the records). Is there a way to hijack their terminal session and send signals to the server as if from their tty/tps in order to back them out safely? I know I can kick them out directly, but the application they are running is not perfectly stable, and I'd really prefer not to corrupt the db. Ideally, I'd like a script that sends a bunch of F4 commands in this manner. I have full root/sudo, of course. It seems easy to send messages to them from the server to their screen (piping through /dev/pts3 or possibly with ncurses), but I haven't found anything for the other direction. Ideas?