daemonize interactive tty line driven programs with output history # $Header: /CVSROOT/ptybuffer/DESCRIPTION,v 1.4 2007-08-29 21:54:21 tino Exp $ # # $Log: DESCRIPTION,v $ # Revision 1.4 2007-08-29 21:54:21 tino # dist 0.6.0, see ChangeLog # # Revision 1.3 2007/08/25 10:31:55 tino # intermediate dist # # Revision 1.2 2007/03/04 02:49:18 tino # Commit for dist, see ChanegLog # # Revision 1.1 2004/11/12 04:45:00 tino # NULL pointer dereference corrected and minor logging improvements ptybuffer was designed to get rid of screen/expect constructs to improve stability. It deamonizes programs which need a tty/pty to operate. Unix domain sockets then can connect, send lines to the program and receive the output (with history) of the program in real time. It's (again) in the alpha phase. NWNadm has been removed and will show up as an idependent package.
Example how to fork off a web based emergency shell with ptybuffer (this is a extreme security risk if you don't protect it!):
mkdir -p $HOME/public_html/shell/
cp -rp php/. $HOME/public_html/shell/
$HOME/public_html/startshell.sh
Start your browser with http://127.0.0.1/~$USER/shell/
If you don't understand this, don't even try it. It's too dangerous!
Note: You can use ptybufferconnect to connect to the ptybuffer socket, but you can also use a tool like socat. Implementation note: ptybuffer is not able to send lines longer than BUFSIZ to the terminal. This is not true if option -i is used.