Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
File Formatstelnetrc(4)


NAME

 telnetrc - file for telnet default options

DESCRIPTION

 

The .telnetrc file contains commands that are executed when a connection is established on a per-host basis. Each line in the file contains a host name, one or more spaces or tabs, and a telnet(1) command. The host name, DEFAULT, matches all hosts. Lines beginning with the pound sign (#) are interpreted as comments and therefore ignored. telnet(1) commands are case-insensitive to the contents of the .telnetrc file.

The .telnetrc file is retrieved from each user's HOME directory.

EXAMPLES

 Example 1. A sample file.
 

In the following example, a .telnetrc file executes the telnet(1) command, toggle:

 
weirdhost toggle crmod
# Always export $PRINTER
DEFAULT environ export PRINTER

The lines in this file indicate that the toggle argument crmod, whose default value is "off" (or FALSE), should be enabled when connecting to the system weirdhost. In addition, the value of the environment variable PRINTER should be exported to all systems. In this case, the DEFAULT keyword is used in place of the host name.

FILES

 
$HOME/.telnetrc

SEE ALSO

 

telnet(1), in.telnetd(1M), environ(5)


SunOS 5.9Go To TopLast Changed 9 Jan 1998

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.