Kermit 95 Command-Line Options

Command line options are operands given on the shell command line used to start a program, such as K95, that can be processed by the program after it starts. For example:

  k95 -Y -l com2 -b 57600

each letter preceded by a dash is an option. Some options (like "-l" and "-b") take operands (like "com1" or "57600"), others (like "-Y") don't.

Command line options are documented in Using C-Kermit, Appendix I, augmented by the C-Kermit 7.0 Updates and C-Kermit 8.0 Updates documents. This section lists options that are specific to K95.

-l _number
The -l option is normally used to specify the name of the communications device to use. However, if instead of a device name, you give a number preceded by an underscore, e.g.:

  k95 -l _1234

this is interpreted as a Windows device handle for a communications connection that has already been opened by another process. This allows other programs to make connections and then use Kermit 95 to peform selected tasks on them. When K95 is started this way, it bypasses all device initialization and conditioning, and it does not close the device when it exits.

-j _number
The -j _number option is similar to -l one, except a network connection is assumed for the open handle. Kermit 95 is prepared to accept Telnet negotiations but does not initiate them.

-J host [ port ]
The -J command-line option makes Kermit 95 act just like Telnet. Follow the -J with whatever you would put on the Telnet command line: host name or IP address, optionally followed by the service port name or number, e.g.:

  telnet 3000

  k95 -J
  k95 -J 3000

When started this way, Kermit 95 makes a Telnet connection to the host and enters CONNECT (Terminal) mode automatically. It lets you escape back and reconnect any number of times (e.g. to transfer files or anything else you want), but when the connection is broken (typically, when you log out of the remote host or service), Kermit 95 exits and disappears automatically.

The TELNET.EXE and RLOGIN.EXE programs that come with Kermit 95 invoke K95.EXE in this way.

NOTE: OS/2 Telnet has a different command-line syntax; the TELNET.EXE program that comes with Kermit/2 converts from OS/2 Telnet syntax to Kermit/2.

-J _number
-J $number
When started this way, K95 treats the number as a TCP/IP socket handle. If the number is prefaced with an underscore, the socket is being used as a telnet client connection. If the number is prefaced by a U.S. currency (dollar) sign, the socket is being used as a telnet server connection.

-# number
Startup Flags. Note: the # is literal, follow it by a number (e.g. -# 4). The number is bit mapped, the sum of the desired start options:

   1 - Disable Win95 special fixes
   2 - Do not load optional network dlls
   4 - Do not load optional tapi dlls
   8 - Do not load optional kerberos dlls
  16 - Do not load optional zmodem dlls
  32 - Use stdin for input instead of the console
  64 - Use stdout for output instead of the console
 128 - Do not terminate proces