TELNETD

Synopsis

TELNETD [/?] [/ACCESSLEVEL number] [/RUN_FILE filename] socket

Description

TELNETD provides TELNET service. If no socket is specified as an argument, it uses its standard input and standard output for input and output. Otherwise, it uses the named socket, which it closes when it has finished with it. The IP address and TCP port number on which TELNET service is thus provided is determined by its parent process, not TELNETD itself. Conventionally, the port number is 23 and the IP address is one that is reachable by Internet at large.

TELNETD is designed to be spawned on demand by TCPSRUN. It can also be spawned by INETD, although the control of client access levels based upon the client's IP address, which TCPSRUN does, will be unavailable as a consequence.

Where client access is denied, TELNETD simply exits immediately, closing the socket. With any other access level, normal TELNET service is provided.

Note: TELNET is currently awaiting a PTY utility to complement it, and to enable it to provide full function TELNET service.

TELNETD writes log information to its standard error.

Example RUN file

A "TCPService.RUN" run file, for TELNETD to be spawned by TCPSRUN, would typically look similar to:

  program %APPS%\JdeBP\IU\Bin\TELNETD.exe
  argument TELNETD
  argument %3

TCPSRUN itself would be invoked under RUNSVC, the Service Manager in the OS/2 Command Line Utilities version 2.2, with a run file similar to:

  program %APPS%\JdeBP\IU\bin\TCPSRun.exe
  chdir %_BOOT%:\Config\Services\%1
  argument TCPSRun
  argument 0.0.0.0
  argument auth
  argument TCPService.RUN

Command-specific options

/RUN_FILE filename
Specify filename as the run file.

The Internet Utilities are © Copyright Jonathan de Boyne Pollard. "Moral" rights are asserted.