get list of a newsgroups from commandline
Alexander Bartolich
alexander.bartolich at gmx.at
Sun Jun 8 17:10:55 UTC 2008
David Hláčik wrote:
> Hello,
> how to get a list of local newsgroups on INN from commandline, i need
> to write a script , which will check if newsgroup exist, if not it
> will create a new one.
On the machine running INN:
sed 's/ .*//' /var/lib/news/active
On a machine configured in incoming.conf to be a peer:
getlist -h hostname.of.inn | sed 's/ .*//' /var/lib/news/active
Ciao
Alexander.
More information about the inn-workers
mailing list