Use of "nnrpd -i"
Julien ÉLIE
julien at trigofacile.com
Sat Oct 17 21:04:48 UTC 2009
Hi,
-i initial
Specify an initial command to nnrpd. When used, initial is taken
as if it were the first command received by nnrpd.
Revision 3708 (in year 2000):
nnrpd.c
@@ -1196,6 +1197,8 @@
}
TITLEset(av[0]);
(*cp->Function)(ac, av);
+ if (PushedBack)
+ break;
}
Reply("%s\r\n", NNTP_GOODBYE_ACK);
which makes "nnrpd -i" stop the connection after the initial command.
Is it how "nnrpd -i" is supposed to work?
Does someone use it here?
Especially when I see the comment of that commit:
- make '-i' work (this is useful for debugging thru stdin)
Well, I just wanted to be sure that this is how the option
is intended to be used...
If so, we could say it in the documentation (exit after the
command).
% nnrpd -i "STAT"
200 news.trigofacile.com InterNetNews NNRP server INN 2.6.0 (20091009 prerelease) ready (posting ok)
412 Not in a newsgroup
[Connection closed.]
--
Julien ÉLIE
« Se taire, c'est pareil dans toutes les langues. » (Philippe Geluck)
More information about the inn-workers
mailing list