Wątki

[ Pobierz całość w formacie PDF ]
.Its operation is controlled bythe batchparms file in /var/lib/news.This file describes the maximum batch size allowed foreach site, the batching and optional compression program to be used, and the transport for delivering it tothe remote site.You may specify batching parameters on a per-site basis, as well as a set of defaultparameters for sites not explicitly mentioned.When installing C News, you will most likely find a batchparms file in your distribution that containsa reasonable default entry, so there's a good chance that you won't have to touch the file.Just in case, wedescribe its format.Each line consists of six fields, separated by spaces or tabs:site size max batcher muncher transportsitesite is the name of the site to which the entry applies.The togo file for this site must reside inout.going /togo below the news spool.A site name of /default/ denotes the default entry andis to match any site not directly specified with an entry unique to it.sizesize is the maximum size of article batches created (before compression).For single articles larger than this, C News makes an exception and puts each in a single batch by itself.maxmax is the maximum number of batches created and scheduled for transfer before batching stallsfor this particular site.This is useful in case the remote site should be down for a long time,because it prevents C News from cluttering your UUCP spool directories with zillions ofnewsbatches.C News determines the number of queued batches using the queuelen script in/usr/lib/news/.If you've installed C News in a prepackaged format, the script should notneed any editing, but if you choose to use a different flavor of spool directories, for example,Taylor UUCP, you might have to write your own.If you don't care about the number of spool files(because you're the only person using your computer and you don't write articles by the megabyte),you may replace the script's contents by a simple exit 0 statement.batcherThe batcher field contains the command used for producing a batch from the list of articles inthe togo file.For regular feeds, this is usually batcher.For other purposes, alternative batchersmay be provided.For instance, the ihave/sendme protocol requires the article list to be turned intoihave or sendme control messages, which are posted to the newsgroup to.site.This is performed bybatchih and batchsm.muncherThe muncher field specifies the compression command.Usually, this is compcun, a script thatproduces a compressed batch.[1] Alternatively, suppose you create a muncher that uses gzip, saygzipcun (note that you have to write it yourself ).You have to make sure that uncompress onthe remote site is patched to recognize files compressed with gzip.If the remote site does not have an uncompress command, you may specify nocomp, which doesnot do any compression.transportThe last field, transport, describes the transport to be used.A number of standard commandsfor different transports are available; their names begin with via.sendbatches passes them thedestination sitename on the command line.If the batchparms entry is not /default/,sendbatches derives the sitename from the site field by stripping it of anything after andincluding the first dot or slash.If the batchparms entry is /default/, the directory names inout.going are used.To perform batching for a specific site, use the following command:# su news -c "/usr/lib/news/batch/sendbatches site"When invoked without arguments, sendbatches handles all batch queues.The interpretation of alldepends on the presence of a default entry in batchparms.If one is found, all directories in/var/spool/news/out.going are checked; otherwise, sendbatches cycles through all entries inbatchparms, processing just the sites found there.Note that sendbatches, when scanning theout.going directory, takes only those directories that contain no dots or at signs (@) as sitenames. There are two commands that use uux to execute rnews on the remote system: viauux and viauuxz.Thelatter sets the z flag for uux to keep older versions from returning success messages for each articledelivered.Another command, viamail, sends article batches to the user rnews on the remote system viamail.Of course, this requires that the remote system somehow feeds all mail for rnews to its local newssystem.For a complete list of these transports, refer to the newsbatch manual page.All commands from the last three fields must be located in either out.going/site or/usr/lib/news/batch.Most of them are scripts; you can easily tailor new tools for your personalneeds.They are invoked through pipes.The list of articles is fed to the batcher on standard input, whichproduces the batch on standard output.This is piped into the muncher, and so on [ Pobierz całość w formacie PDF ]

  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • mikr.xlx.pl
  • Powered by MyScript