old-www/LDP/nag/node102.html

47 lines
1.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<!--Converted with LaTeX2HTML 96.1-c (Feb 29, 1996) by Nikos Drakos (nikos@cbl.leeds.ac.uk), CBLU, University of Leeds -->
<HTML>
<HEAD>
<TITLE>Variable Names</TITLE>
</HEAD>
<BODY LANG="EN">
<A HREF="node1.html"><IMG WIDTH=65 HEIGHT=24 ALIGN=BOTTOM ALT="contents" SRC="contents_motif.gif"></A> <BR>
<B> Next:</B> <A HREF="node103.html">The if and goto </A>
<B>Up:</B> <A HREF="node97.html">A dip Reference</A>
<B> Previous:</B> <A HREF="node101.html">The print Command</A>
<BR> <P>
<H3><A NAME="SECTION009325000">Variable Names</A></H3>
<P>
dip only understands a predefined set of variables. A
variable name always begins with a dollar symbol and must be
written in lower-case letters.
<P>
The $local and $locip variables contain
the local host's name and IP-address. Setting the hostname makes
dip store the canonical hostname in $local,
at the same time assigning $locip the corresponding
IP-address. The analogous thing happens when setting the
$locip.
<P>
The $remote and $rmtip variables do the same for
the remote host's name and address. $mtu contains the MTU
value for the connection.
<P>
These five variables are the only ones that may be assigned values
directly using the get command. A host of other variables can
only be set through corresponding commands, but may be used
print statements; these are $modem, $port,
and $speed.
<P>
$errlvl is the variable through which you can access the
result of the last command executed. An error level of 0 indicates
success, while a non-zero value denotes an error.
<P>
<BR> <HR>
<P><ADDRESS>
<I>Andrew Anderson <BR>
Thu Mar 7 23:22:06 EST 1996</I>
</ADDRESS>
</BODY>
</HTML>