File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mpd / doc / mpd58.html
Revision 1.1.1.4 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Mar 17 00:39:23 2021 UTC (3 years, 3 months ago) by misho
Branches: mpd, MAIN
CVS tags: v5_9p16, v5_9, HEAD
mpd 5.9

    1: <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    2: <HTML>
    3: <HEAD>
    4: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
    5: <TITLE>Special variables</TITLE>
    6: </HEAD>
    7: <BODY text="#000000" bgcolor="#ffffff">
    8: 
    9: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
   10:  <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
   11:  <b>:</b> <A HREF="mpd57.html"><EM>Variables</EM></A>
   12:  <b>:</b> <EM>Special variables</EM><BR>
   13: <b>Previous:</b> <A HREF="mpd57.html"><EM>Variables</EM></A><BR>
   14: <b>Next:</b> <A HREF="mpd59.html"><EM>Script commands</EM></A>
   15: 
   16: 
   17: <HR NOSHADE>
   18:   <H2><A NAME="58"></A>6.4.1. Special variables</H2>
   19: <p>These variables have special meaning in chat scripts:</p>
   20: <p>
   21: <dl>
   22: 
   23: <dt><b><code>$Login</code></b><dd><p>Authorization login name as set by <code>set auth authname</code>.</p>
   24: 
   25: <dt><b><code>$Password</code></b><dd><p>The password corresponding to <code>$Login</code>.</p>
   26: 
   27: <dt><b><code>$modemDevice</code></b><dd><p>The serial port device in use as set by the
   28: <code>set modem device</code> command, e.g., <code>/dev/cuau0</code>.
   29: Changing this string does not change the port being used.</p>
   30: 
   31: <dt><b><code>$Baudrate</code></b><dd><p>Always equals the current baudrate (e.g., ``57600''). This
   32: is a read/write variable; setting it changes the baudrate.
   33: Attempting to set an invalid baudrate causes the script to fail.</p>
   34: 
   35: <dt><b><code>$matchedString</code></b><dd><p>When a <code>match</code> event occurs this string contains
   36: the input string that matched the pattern.</p>
   37: 
   38: <dt><b><code>$matchedString0 </code></b><dd>
   39: <dt><b><code>$matchedString1 </code></b><dd>
   40: <dt><b><code>$matchedString2 </code></b><dd>
   41: <dt><b><code>... </code></b><dd>
   42: <p>When a <code>regex</code> event occurs or the <code>if match</code> or
   43: <code>if !match</code> commands are executed, and the regular
   44: expression pattern contains parenthesized subexpressions, these
   45: strings will be equal to the substrings matching each subexpression.
   46: <code>$matchedString0</code> is equal to the entire string, while
   47: <code>$matchedString1</code> equals the first subexpression match,
   48: <code>$matchedString2</code> the second, etc.</p>
   49: 
   50: <dt><b><code>$IdleResult</code></b><dd><p>This variable is used to return the result of an <b>idle
   51: script</b>; If the value is <code>answer</code>, mpd assumes an
   52: incoming call has been answered. If the value is <code>ringback</code>,
   53: mpd will initiate an outgoing connection.  See the chapter on
   54: <A HREF="mpd43.html#modem">Modem type commands</A> for more information.</p>
   55: 
   56: <dt><b><code>$$</code></b><dd><p>Always expands to a single dollar sign.</p>
   57: 
   58: </dl>
   59: </p>
   60: 
   61:  <HR NOSHADE>
   62: <A HREF="mpd.html"><EM>Mpd 5.9 User Manual</EM></A>
   63:  <b>:</b> <A HREF="mpd50.html"><EM>Chat Scripting</EM></A>
   64:  <b>:</b> <A HREF="mpd57.html"><EM>Variables</EM></A>
   65:  <b>:</b> <EM>Special variables</EM><BR>
   66: <b>Previous:</b> <A HREF="mpd57.html"><EM>Variables</EM></A><BR>
   67: <b>Next:</b> <A HREF="mpd59.html"><EM>Script commands</EM></A>
   68: 
   69: 
   70: 
   71: </BODY>
   72: </HTML>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>