Man page - buffchan(8)
Packages contains this manual
- prunehistory(8)
- makehistory(8)
- installit(1)
- buffchan(8)
- active(5)
- qio(3)
- passwd.nntp(5)
- actsync(8)
- scanlogs(8)
- shlock(1)
- inndstart(8)
- getlist(1)
- convdate(1)
- innstat(8)
- tally.unwanted(8)
- overview.fmt(5)
- ctlinnd(8)
- innwatch(8)
- archive(8)
- inn.conf(5)
- innxbatch(8)
- makeactive(8)
- hosts.nntp(5)
- expire(8)
- nnrp.access(5)
- nntpsend(8)
- wildmat(3)
- send-uucp(8)
- grephistory(1)
- in.nnrpd(8)
- nntpsend.ctl(5)
- rnews(1)
- innd(8)
- parsedate(3)
- inews(1)
- innlog.pl(8)
- newslog(8)
- expirerm(8)
- filechan(8)
- newsrequeue(8)
- nntpget(1)
- pgpverify(8)
- writelog(8)
- control.ctl(5)
- batcher(8)
- crosspost(8)
- news-recovery(8)
- expire.ctl(5)
- news.daily(8)
- newsfeeds(5)
- overchan(8)
- innxmit(8)
- clientlib(3)
- expireover(8)
- libinn(3)
- innwatch.ctl(5)
- inncheck(8)
- dbz(3)
- history(5)
- distrib.pats(5)
- innconfval(1)
- cvtbatch(8)
- moderators(5)
- inndcomm(3)
- shrinkfile(1)
- newslog(5)
- subst(1)
- fastrm(8)
- tally.control(8)
- inn-radius.conf(5)
- localgroups(5)
- innreport(8)
- getlist(1)
- convdate(1)
- ident(8)
- innwatch(8)
- expire(8)
- nntpsend(8)
- wildmat(3)
- motd.innd(5)
- innd(8)
- perl-nocem(8)
- tdx-util(8)
- batcher(8)
- ckpasswd(8)
- nnrpd(8)
- innfeed(8)
- innwatch.ctl(5)
- delayer(8)
- cnfsstat(8)
- shrinkfile(1)
- innreport.conf(5)
- send-ihave(8)
- prunehistory(8)
- ovdb_monitor(8)
- active(5)
- procbatch(8)
- actsync(8)
- incoming.conf(5)
- actsyncd(8)
- imapfeed(8)
- controlchan(8)
- innfeed.conf(5)
- grephistory(1)
- nnrpd.track(5)
- docheckgroups(8)
- send-nntp(8)
- ovsqlite-util(8)
- pgpverify(1)
- tinyleaf(8)
- auth_krb5(8)
- news.daily(8)
- innxmit(8)
- expireover(8)
- domain(8)
- motd.nnrpd(5)
- makedbz(8)
- innupgrade(8)
- readers.conf(5)
- gencancel(1)
- fastrm(1)
- ovdb_server(8)
- motd.news(5)
- scanlogs(8)
- shlock(8)
- ctlinnd(8)
- libinn_uwildmat(3)
- archive(8)
- innxbatch(8)
- rc.news(8)
- send-uucp(8)
- sendinpaths(8)
- news2mail(8)
- buffindexed.conf(5)
- inn-secrets.conf(5)
- newsgroups(5)
- inncheck(8)
- ovdb_stat(8)
- ovsqlite(5)
- history(5)
- cvtbatch(8)
- ovdb_init(8)
- inpaths(8)
- ovdb(5)
- tally.control(8)
- storage.conf(5)
- makehistory(8)
- buffchan(8)
- innmail(1)
- distributions(5)
- innstat(8)
- radius(8)
- mailpost(8)
- subscriptions(5)
- scanspool(8)
- nocem.ctl(5)
- nntpsend.ctl(5)
- inndf(8)
- sendxbatches(8)
- expirerm(8)
- nntpget(1)
- active.times(5)
- cnfsheadconf(8)
- writelog(8)
- control.ctl(5)
- ovsqlite-server(8)
- cycbuff.conf(5)
- expire.ctl(5)
- newsfeeds(5)
- overchan(8)
- innconfval(1)
- sm(8)
- mod-active(8)
- pullnews(1)
- newslog(5)
- ninpaths(8)
- innbind(8)
apt-get install inn
apt-get install inn2
Manual
BUFFCHAN
NAMESYNOPSIS
DESCRIPTION
OPTIONS
HISTORY
SEE ALSO
NAME
buffchan - buffered file-writing backend for InterNetNews
SYNOPSIS
buffchan [ -b ] [ -c lines ] [ -C seconds ] [ -d directory ] [ -f fields ] [ -m map ] [ -p pidfile ] [ -l lines ] [ -L seconds ] [ -r ] [ -s file_format ] [ -u ]
DESCRIPTION
Buffchan reads lines from standard input and copies certain fields in each line into files named by other fields within the line. Buffchan is intended to be called by innd (8) as an exploder feed.
OPTIONS
|
-b |
Once buffchan opens a file it keeps it open. The input must therefore never specify more files than can the number of available descriptors can keep open. If the ββ -b ββ flag is used, the program will allocate a buffer and attach it to the file using setbuf (3). |
||
|
-c |
If the ββ -c ββ flag is used with a number n , then buffchan will close, and re-open, a file after every n lines are written to a file. |
||
|
-C |
Similarly, the ββ -C ββ flag may be used to specify that all files should be closed and re-opened every n seconds. |
||
|
-d |
The ββ -d ββ flag may be used to specify a directory the program should change to before starting. If this flag is used, then the default for the ββ -s ββ flag is changed to be a simple ββ%s.ββ |
||
|
-f |
Buffchan input is interpreted as a set of lines. Each line contains a fixed number of initial fields, followed by a variable number of filename fields. All fields in a line are separated by whitespace. The default number of initial fields is one; the ββ -f ββ flag may be used to specify a different number of fields. See filechan (8) for an example. |
||
|
-p |
If the ββ -p ββ flag is used, the program will write a line containing its process ID (in text) to the specified file. |
||
|
-l |
If the ββ -l ββ flag is used with a number n , then buffchan will call fflush (3) after every n lines are written to a file. |
||
|
-L |
If the ββ -L ββ flag is used with a number n , then all files will be flushed every n seconds. |
||
|
-r |
By default, the program sets its standard error to /var/log/news/errlog . To suppress this redirection, use the ββ -r ββ flag. |
||
|
-s |
After the initial fields, each remaining field names a file to write. The ββ -s ββ flag may be used to specify a format string that maps the field to a file name. This is a sprintf (3) format string which should have a single ββ%sββ parameter which will be given the field. The default value is /var/spool/news/out.going/ %s. See the description of this flag in filechan (8). |
||
|
-u |
If the ββ -u ββ flag is used, the program will request unbuffered output. |
Buffchan can be invoked as an exploder feed (see newsfeeds (5)). As such, if a line starts with an exclamation point it will be treated as a command. There are three commands, described below:
|
flush |
The ββflushββ command closes and re-opens all open files; ββflushΒ xxxββ which flushes only the specified site. These are analogous to the ctlinnd (8) ββflushββ command, and can be achieved by doing a ββsendΒ "flushΒ xxx"ββ command. Applications can tell that the ββflushββ has completed by renaming the file before issuing the command; buffchan has completed the command when the original filename re-appears. |
Buffchan also changes the access permissions of the file from read-only for everyone to read-write for owner and group as it flushes or closes each output file. It will change the modes back to read-only if it re-opens the same file.
|
drop |
The ββdropββ command is similar to the ββflushββ command except that any files are not re-opened. If given an argument, then the specified site is dropped, otherwise all sites are dropped. (Note that the site will be restarted if the input stream mentions the site.) When a ctlinnd ββdrop siteββ command is sent, innd will automatically forward the command to buffchan if the site is a funnel that feeds into this exploder. To drop all sites, use the ctlinnd ββsend buffchan-site dropββ command. |
readmap
The map file (specified with the ββ-mββ flag) is reloaded.
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.11, dated 1996/10/29.
SEE ALSO
ctlinnd(8), filechan(8), innd(8), newsfeeds(5).