メインコンテンツまでスキップ

4.7-4.8. コマンドと応答の一覧、および USENET ニュースシステム

4.7. コマンドと応答の一覧​

以下は、NNTP サーバが認識するコマンドと、返される応答である。

4.7.1. コマンド​

ARTICLE
BODY
GROUP
HEAD
HELP
IHAVE
LAST
LIST
NEWGROUPS
NEWNEWS
NEXT
POST
QUIT
SLAVE
STAT

4.7.2. 応答​

100 help text follows
199 debug output

200 server ready - posting allowed
201 server ready - no posting allowed
202 slave status noted
205 closing connection - goodbye!
211 n f l s group selected
215 list of newsgroups follows
220 n <a> article retrieved - head and body follow 221 n <a> article
retrieved - head follows
222 n <a> article retrieved - body follows
223 n <a> article retrieved - request text separately 230 list of new
articles by message-id follows
231 list of new newsgroups follows
235 article transferred ok
240 article posted ok

335 send article to be transferred. End with <CR-LF>.<CR-LF>
340 send article to be posted. End with <CR-LF>.<CR-LF>

400 service discontinued
411 no such news group
412 no newsgroup has been selected
420 no current article has been selected
421 no next article in this group
422 no previous article in this group
423 no such article number in this group
430 no such article found
435 article not wanted - do not send it
436 transfer failed - try again later
437 article rejected - do not try again.
440 posting not allowed
441 posting failed

500 command not recognized
501 command syntax error
502 access restriction or permission denied
503 program fault - command not performed

4.8. USENET ニュースシステムについての簡単な解説​

伝統的に 1200 ボーのダイヤルアップ電話回線で結ばれてきた UNIX の世界では、USENET ニュースシステムが、ニュースの集中保管、索引付け、取得、配布を扱うものとして発展した。基盤となる転送機構(UUCP)を除けば、USENET ニュースは、世界中の UNIX その他のホスト上の購読者にニュースと掲示のサービスを提供する効率的な手段である。USENET ニュースシステムについては RFC 850 に詳しく論じられている。それはほとんどの UNIX のバージョンおよび多くの他のオペレーティングシステム上で動作し、通常は無償で配布されている。

USENET は、UNIX ホスト上のスプール領域を用いて、ニュース記事を 1 ファイルにつき 1 記事で保管する。各記事は、送信者の識別情報と所属組織、タイムスタンプ、電子メールの返信経路、件名、ニュースグループ(主題のカテゴリ)などを含む一連のヘッダテキストからなる。完全なニュース記事を以下にそのまま掲載する。詳細は RFC 850 を参照のこと。

Relay-Version: version B 2.10.3 4.3bsd-beta 6/6/85; site
sdcsvax.UUCP
Posting-Version: version B 2.10.1 6/24/83 SMI; site unitek.uucp
Path:sdcsvax!sdcrdcf!hplabs!qantel!ihnp4!alberta!ubc-vision!unitek
!honman
From: [email protected] (Man Wong)
Newsgroups: net.unix-wizards
Subject: foreground -> background ?
Message-ID: <[email protected]>
Date: 25 Sep 85 23:51:52 GMT
Date-Received: 29 Sep 85 09:54:48 GMT
Reply-To: [email protected] (Hon-Man Wong)
Distribution: net.all
Organization: Unitek Technologies Corporation
Lines: 12

I have a process (C program) which generates a child and waits for
it to return. What I would like to do is to be able to run the
child process interactively for a while before kicking itself into
the background so I can return to the parent process (while the
child process is RUNNING in the background). Can it be done? And
if it can, how?

Please reply by E-mail. Thanks in advance.

Hon-Man Wong