1
.TH MKTAP "1" "July 2001" "" ""
3
mktap \- create twisted.servers
6
[\fIoptions\fR] \fIapptype\fR [\fIapplication_option\fR]...
12
The \fB\--help\fR prints out a usage message to standard output.
14
\fB\--debug\fR, \fB\-d\fR
15
Show debug information for plugin loading.
17
\fB\--progress\fR, \fB\-p\fR
18
Show progress information for plugin loading.
20
\fB\--encrypted\fR, \fB\-e\fR
21
Encrypt file before writing (will make the extension of the resultant file begin with 'e').
23
\fB\--uid\fR, \fB\-u\fR \fI<uid>\fR
24
Application belongs to this uid, and should run with its permissions.
26
\fB\--gid\fR, \fB\-d\fR \fI<gid>\fR
27
Application belongs to this gid, and should run with its permissions.
29
\fB\--append\fR, \fB\-a\fR \fI<file>\fR
30
Append given servers to given file, instead of creating a new one.
31
File should be be a tap file.
33
\fB\--appname\fR, \fB\-n\fR \fI<name>\fR
34
Use the specified name as the process name when the application is run with
35
\fItwistd(1)\fR. This option also causes some initialization code to be
36
duplicated when \fItwistd(1)\fR is run.
38
\fB\--type\fR, \fB\-t\fR \fI<type>\fR
39
Specify the output file type. Available types are:
41
pickle - (default) Output as a python pickle file.
43
source - Output as a .tas (AOT Python source) file.
46
Can be 'web', 'portforward', 'toc', 'coil', 'words', \
47
'manhole', 'im', 'news', 'socks', 'telnet', 'parent', 'sibling', \
48
'ftp', and 'mail'. Each of those support different options.
50
.SH \fBportforward\fR options
52
\fB\-h\fR, \fB\--host\fR \fI<host>\fR
53
Proxy connections to \fI<host>\fR
55
\fB\-d\fR, \fB\--dest_port\fR \fI<port>\fR
56
Proxy connections to \fI<port>\fR on remote host.
58
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
59
Listen locally on \fI<port>\fR
63
\fB\-u\fR, \fB\--user\fR
64
Makes a server with ~/public_html and
65
~/.twistd-web-pb support for users.
68
Instead of generating a webserver, generate a
69
ResourcePublisher which listens on ~/.twistd-web-pb
71
\fB\--path\fR \fI<path>\fR
72
<path> is either a specific file or a directory to be
73
set as the root of the web server. Use this if you
74
have a directory full of HTML, cgi, php3, epy, or rpy files or
75
any other files that you want to be served up raw.
77
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
78
<port> is a number representing which port you want to
81
\fB\-m\fR, \fB\--mime_type\fR \fI<mimetype>\fR
82
<mimetype> is the default MIME type to use for
83
files in a --path web server when none can be determined
84
for a particular extension. The default is 'text/html'.
86
\fB\--allow_ignore_ext\fR
87
Specify whether or not a request for 'foo' should return 'foo.ext'.
90
\fB\--ignore-ext\fR \fI.<extension>\fR
91
Specify that a request for 'foo' should return 'foo.\fI<extension>\fR'.
93
\fB\-t\fR, \fB\--telnet\fR \fI<port>\fR
94
Run a telnet server on <port>, for additional
97
\fB\-i\fR, \fB\--index\fR \fI<name>\fR
98
Use an index name other than "index.html"
100
\fB--https\fR \fI<port>\fR
101
Port to listen on for Secure HTTP.
103
\fB-c\fR, \fB--certificate\fR \fI<filename>\fR
104
SSL certificate to use for HTTPS. [default: server.pem]
106
\fB-k\fR, \fB--privkey\fR \fI<filename>\fR
107
SSL certificate to use for HTTPS. [default: server.pem]
109
\fB--processor\fR \fI<ext>=<class name>\fR
110
Adds a processor to those file names. (Only usable if after
113
\fB--resource-script\fR \fI<script name>\fR
114
Sets the root as a resource script. This script will be re-evaluated on
117
This creates a web.tap file that can be used by twistd. If you
118
specify no arguments, it will be a demo webserver that has the Test
119
class from twisted.web.test in it.
120
.SH \fBtoc\fR options
122
\fB\-p\fR \fI<port>\fR
123
<port> is a number representing which port you want to
125
.SH \fBmail\fR options
127
\fB\-r\fR, \fB\--relay\fR \fI<ip>,<port>=<queue directory>\fR
128
Relay mail to all unknown domains through given IP and port,
129
using queue directory as temporary place to place files.
131
\fB\-d\fR, \fB\--domain\fR \fI<domain>\fR=\fI<path>\fR
132
generate an SMTP/POP3 virtual maildir domain named "domain" which saves to
135
\fB\-u\fR, \fB\--username\fR \fI<name>\fR=\fI<password>\fR
136
add a user/password to the last specified domains
138
\fB\-b\fR, \fB\--bounce_to_postmaster\fR
139
undelivered mails are sent to the postmaster, instead of being rejected.
141
\fB\-p\fR, \fB\--pop\fR \fI<port>\fR
142
<port> is a number representing which port you want to
143
start the pop3 server on.
145
\fB\-s\fR, \fB\--smtp\fR \fI<port>\fR
146
<port> is a number representing which port you want to
147
start the smtp server on.
149
This creates a mail.tap file that can be used by twistd(1)
150
.SH \fBtelnet\fR options
152
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
153
Run the telnet server on <port>
155
\fB\-u\fR, \fB\--username\fR \fI<name>\fR
156
set the username to <name>
158
\fB\-w\fR, \fB\--password\fR \fI<password>\fR
159
set the password to <password>
160
.SH \fBsocks\fR options
162
\fB\-i\fR, \fB\--interface\fR \fI<interface>\fR
163
Listen on interface <interface>
165
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
166
Run the SOCKSv4 server on <port>
168
\fB\-l\fR, \fB\--log\fR \fI<filename>\fR
169
log connection data to <filename>
170
.SH \fBftp\fR options
172
\fB\-a\fR, \fB\--anonymous\fR
173
Allow anonymous logins
175
\fB\-3\fR, \fB\--thirdparty\fR
176
Allow third party connections
179
Use one time passwords (OTP)
181
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
182
Run the FTP server on <port>
184
\fB\-r\fR, \fB\--root\fR \fI<path>\fR
185
Define the local root of the FTP server
187
\fB\--anonymoususer\fR \fI<username>\fR
188
Define the the name of the anonymous user
189
.SH \fBmanhole\fR options
191
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
192
Run the manhole server on <port>
194
\fB\-u\fR, \fB\--user\fR \fI<name>\fR
195
set the username to <name>
197
\fB\-w\fR, \fB\--password\fR \fI<password>\fR
198
set the password to <password>
199
.SH \fBwords\fR options
201
\fB\-p\fR, \fB\--port\fR \fI<port>\fR
202
Run the Words server on <port>
204
\fB\-i\fR, \fB\--irc\fR \fI<port>\fR
205
Run IRC server on port <port>
207
\fB\-w\fR, \fB\--web\fR \fI<port>\fR
208
Run web server on port <port>
210
Written by Moshe Zadka, based on mktap's help messages
212
To report a bug, visit \fIhttp://twistedmatrix.com/bugs/\fR
214
Copyright \(co 2000-2008 Twisted Matrix Laboratories.
216
This is free software; see the source for copying conditions. There is NO
217
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.