40 lines
1.5 KiB
HTML
40 lines
1.5 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>send, wait and sleep</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="node105.html">mode and default</A>
|
|
<B>Up:</B> <A HREF="node97.html">A dip Reference</A>
|
|
<B> Previous:</B> <A HREF="node103.html">The if and goto </A>
|
|
<BR> <P>
|
|
<H3><A NAME="SECTION009327000">send, wait and sleep</A></H3>
|
|
<P>
|
|
These commands help implement simple chat scripts in dip.
|
|
send outputs its arguments to the serial line. It does not
|
|
support variables, but understands all C-style backslash character
|
|
sequences such as n and b. The tilde
|
|
character () is used as an abbreviation for carriage
|
|
return/newline.
|
|
<P>
|
|
wait takes a word as an argument, and scans all input
|
|
on the serial line until it recognizes this word. The word itself
|
|
may not contain any blanks. Optionally, you may give wait
|
|
a timeout value as second argument; if the expected word is not
|
|
received within that many seconds, the command will return
|
|
with an $errlvl value of one.
|
|
<P>
|
|
The sleep statement may be used to wait for a certain amount
|
|
of time, for instance to patiently wait for any login sequence
|
|
to complete. Again, the interval is specified in seconds.
|
|
<P>
|
|
<BR> <HR>
|
|
<P><ADDRESS>
|
|
<I>Andrew Anderson <BR>
|
|
Thu Mar 7 23:22:06 EST 1996</I>
|
|
</ADDRESS>
|
|
</BODY>
|
|
</HTML>
|