If you've used screen, it's a similar concept, but more suited to traditional scrolling interfaces whereas screen is better for full-screen (e.g. curses-based) apps. Compared to screen, detachtty
server$ detachtty --dribble-file /var/log/cliki-dribble --log-file \ /var/log/detachtty.log --pid-file /var/run/cliki.pid \ /var/run/cliki-socket /usr/bin/lisp -eval '(load-system :telentweb)' \ -eval '(progn (telentweb::init) (telentweb::start))' \client$ attachtty dan@server:/var/run/cliki-socket
to quit attachtty press ^\
Start a script late .. i.e. S9xlispapp in rc[2|3].d/
start S9xlispapp #!/bin/sh su - user -c /path/to/lisp-app-script end S9xlispapp-quasi (credit to Eduardo Muņoz for this information)start lisp-app-script #!/bin/sh
detachtty --dribble-file /var/log/lisp-app-dribble --log-file \ /var/log/detachtty.log --pid-file /var/run/lisp-app.pid \ /var/run/lisp-app-socket /usr/bin/lisp -eval '(start-lisp-app)'
end lisp-app-script
A more featureful init.d startup script for debian and compatible linuxes is introduced in http://boinkor.net/archives/2006/02/starting_daemonized_lisp_image_1.html
detachtty is running the SBCL instance that CLiki runs on
detachtty is mostly tested on Debian GNU/Linux, but contributed patches for FreeBSD and Solaris have been merged into it, so it's probably not too hard to get running on many Unices
apparently, it worked on macos at one time, but that is no longer true under macos 10.4 (tiger). It seems that tiger's poll does not work as advertised. it works on Tiger using poll-emulator.darwinports.com ("OS_LOADLIBES=-lpoll -L/opt/local/lib" is the only change required to make it work on Intel, but I'm having some issues on PPC)
i386 Debian and source packages (currently at version 9) are at ftp://ftp.linux.org.uk/pub/lisp/detachtty/. This package is also available in the main Debian repository. There's also a FreeBSD port, misc/detachtty, which you can get from the ports tree.
A new version, which includes the ablility to set timeouts and pass code to the detach'd lisp (for better scriptablity) is available in the darcs repo at:
http://common-lisp.net/project/bese/repos/detachtty
Patches against that code would are more than welcome.
This page is linked from: Daniel Barlow reattatchabe slime
CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively