File: sendnews

package info (click to toggle)
postit 0.5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 160 kB
  • ctags: 218
  • sloc: ansic: 753; sh: 243; makefile: 61
file content (19 lines) | stat: -rwxr-xr-x 565 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
#
# This script starts 'postit' in a way that feedfiles are properly
# flushed and re-created.

# Enter your paths here:
SPOOLPATH=/var/spool/news
OUTGOING=${SPOOLPATH}/out.going
BINPATH=/usr/lib/news/bin

# Below is an example for a feedfile called "foo", which is to be fed
# to "news.foo.org".  We flush the feed, then rename it, restart the
# feed process, and finally process the renamed feedfile.

# ${BINPATH}/ctlinnd flush foo
# mv ${OUTGOING}/foo ${OUTGOING}/foo.postit
# ${BINPATH}/ctlinnd begin foo
# ${BINPATH}/postit foo.postit news.foo.org