🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
2 messages
2 total messages Started by Mike Wed, 02 May 2001 15:21
ctlinnd Return Codes
#52128
Author: Mike
Date: Wed, 02 May 2001 15:21
11 lines
1349 bytes
I've been searching the web to try and find if there is a list of return

codes/messages for using ctlinnd to create newgroups.  I know that it
returns "OK" if the group was created successfully, but what if it
fails?  Is there a rc list somewhere that we can use?

Thanks.



Re: ctlinnd Return Codes
#52137
Author: Russ Allbery
Date: Wed, 02 May 2001 22:04
26 lines
2113 bytes
Mike <msava@us.ibm.com> writes:

> I've been searching the web to try and find if there is a list of return
> codes/messages for using ctlinnd to create newgroups.  I know that it
> returns "OK" if the group was created successfully, but what if it
> fails?  Is there a rc list somewhere that we can use?

See the ctlinnd(8) man page:

     In the normal mode of behavior, the message is sent to the server,
     which then performs the requested action and sends back a reply with
     a text message and the exit code for ctlinnd.  If the server
     successfully performed the command, ctlinnd will exit with a status
     of zero and print the reply on standard output.  If the server could
     not perform the command (for example, it was told to remove a
     newsgroup that does not exist), it will direct ctlinnd to exit with a
     status of one.  The ``shutdown,'' ``xabort,'' and ``xexec'' commands
     do not generate a reply; ctlinnd will always exit silently with a
     status of zero.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads