diff --git a/doc/ftpd.scm.doc b/doc/ftpd.scm.doc new file mode 100644 index 0000000..6c67165 --- /dev/null +++ b/doc/ftpd.scm.doc @@ -0,0 +1,178 @@ +This file documents how to use the ftp-daemon ftpd + +USAGE +----- + +Usage as a stand-alone daemon: + +Start the daemon in a scsh (or with a script, see below) using + +,config ,load modules.scm +,open ftpd +(ftpd []) + +(confirm open's question for opening the ftpd-structure) +where is the root-directory of the ftp-server and + the port the server is listening to. Usage of relative paths in + is not encouraged. defaults to 21. + +For example + +(ftpd (cwd) 8080) + +starts the server with the current directory as anonymous home and +listening to port 8080. + + +Usage with the collaboration of a daemon like inetd: + +Instead of FTPD, inetd uses FTPD-INETD, for example: + +(ftpd-inetd (cwd)) + +starts the server with the current directory as anonymous home and +handling the connection (given from inetd) through the current input- +and output-ports. + + +Example + +This is how archive.informatik.uni-tuebingen.de is called at the +university of Tuebingen: + +#!/bin/sh +/afs/informatik.uni-tuebingen.de/rs_aix43/scsh-0.6-alpha/bin/scsh <port-binary input-port output-port) (let ((buffer (make-string *window-size*)))