📄 control.ctl.5
字号:
.\" $Revision: 1.4 $.TH CONTROL.CTL 5.SH NAMEcontrol.ctl \- specify handling of Usenet control messages.SH DESCRIPTIONThe file.\" =()<.I @<_PATH_CONTROLCTL>@>()=.I /var/spool/news/data/control.ctlis used to determine what action is taken when a control messageis received.It is read by the.I parsecontrolscript, which is called by all the control scripts.(For an explanation of how the control scripts are invoked, see.IR innd (8).).PPThe file consists of a series of lines; blank lines and lines beginningwith a number sign (``#'') are ignored.All other lines consist of four fields separated by a colon:.RSmessage:from:newsgroups:action.RE.PPThe first field is the name of the message for which this line is valid.It should be either the name of the control message, or the word ``all''to mean that it is valid for all messaages..PPThe second field is a shell-style pattern that matches the email addressof the person posting the message.(The poster's address is first converted to lowercase.)The matching is done using the shell's.I casestatement; see.I sh (1)for details..PPIf the control message is ``newgroup'' or ``rmgroup'' then the thirdfield specifies the shell-style pattern that must match the groupbeing created or removed.If the control message is of a different type, then this field isignored..PPThe fourth field specifies what action to take if this line is selectedfor the message.The following actions are understood:.TP.B doitThe action requested by the control message should be performed.In most cases the control script will also send mail to.\" =()<@<NEWSMASTER>@.>()=usenet..TP.B doifargIf the control message has an argument, this is treated as a ``doit'' action.If no argument was given, it is treated as a ``mail'' entry.This is used in ``sendsys'' entriesscript so that a site can request its own.IR newsfeeds (5)entry by posting a ``sendsys mysite'' article.On the other hand, ``sendsys bombs'' ask that the.I newsfeedsfile be sent; by using ``doifarg'' such messages will not be processedautomatically..TP.BI doit= fileThe action is performed, but a log entry is written to the specifiedlog file,.IR file .If.I fileis the word ``mail'' then the record is mailed.A null string is equivalent to /dev/null.A pathname that starts with a slash is taken as the absolute filename touse as the log.All other pathnames are written to.\" =()<.IR @<_PATH_MOST_LOGS>@/ file .log .>()=.IR /var/spool/news/data/ file .log .The log is written by.I writelog(see.IR newslog (8))..TP.B dropNo action is taken; the message is ignored..TP.B logA one-line log notice is sent to standard error..I Inndnormally directs this to the file.\" =()<.IR @<_PATH_ERRLOG>@ .>()=.IR /var/spool/news/data/errlog ..TP.BI log =fileA log entry is written to the specified log file,.IR file ,which is interpreted as described above..TP.B mailA mail message is sent to the news administrator..PPLines are matched in order; the last match found in the file is the onethat is used.For example, with the following three lines:.RS.nfnewgroup:*:*:dropnewgroup:tale@*.uu.net:comp.*|misc.*|news.*|rec.*|sci.*|soc.*|talk.*:doitnewgroup:kre@munnari.oz.au:aus.*:mail.fi.REA newgroup coming from ``tale'' at a UUNET machine will be honored ifit is in one the mainstream Usenet hieararchy.If ``kre'' posts a newgroup message creating ``aus.foo'', then mail willbe sent.All other newgroup messages are ignored..SH HISTORYWritten by Rich $alz <rsalz@uunet.uu.net> for InterNetNews..de R$This is revision \\$3, dated \\$4....R$ $Id: control.ctl.5,v 1.4 1993/01/29 16:42:34 rsalz Exp $.SH "SEE ALSO"innd(8),newsfeeds(5),scanlogs(8).
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -