A dip Reference
In this section, we will give a reference for most of dip 's commands. You can get an overview of all the commands it provides by invoking dip in test mode and entering the
# dip -t
DIP: Dialup IP Protocol Driver version 3.3.7p-uri (25 Dec 96)
Written by Fred N. van Kempen, MicroWalt Corporation.
Debian version 3.3.7p-2 (debian).
DIP› help
DIP knows about the following commands:
beep bootp break chatkey config
databits dec default dial echo
flush get goto help if
inc init mode modem netmask
onexit parity password proxyarp print
psend port quit reset securidfixed
securid send shell skey sleep
speed stopbits term timeout wait
DIP› echo
Usage: echo on|off
DIP›
Throughout the following section, examples that display the DIP› prompt show how to enter a command in test mode and what output it produces. Examples lacking this prompt should be taken as script excerpts.
The modem commands
dip provides a number of commands that configure your serial line and modem. Some of these are obvious, such as
The
The
The
The echo command
The
dip also allows you to leave script mode temporarily and enter terminal mode. In this mode, you can use dip just like any ordinary terminal program, writing the characters you type to the serial line, reading data from the serial line, and displaying the characters. To leave this mode, enter Ctrl-].
The get command
The
DIP› get $local ask
Enter the value for $local: _
A third method is to obtain the value from the remote host. Bizarre as it seems at first, this is very useful in some cases. Some SLIP servers will not allow you to use your own IP address on the SLIP link, but will rather assign you one from a pool of addresses whenever you dial in, printing some message that informs you about the address you have been assigned. If the message looks something like ' Your address: 192.168.5.74 ', the following piece of dip code would let you pick up the address:
# finish login
wait address: 10
get $locip remote
The print command
This is the command used to echo text to the console from which dip was started. Any of dip 's variables may be used in print commands. Here's an example:
DIP› print Using port $port at speed $speed
Using port ttyS3 at speed 38400
Variable names
dip understands only a predefined set of variables. A variable name always begins with a dollar symbol and must be written in lowercase letters.
The
