Mpd includes a powerful chat scripting language for use with links of type modem, i.e., asynchronous serial ports. The language is interpreted and executed dynamically and supports fully event driven processing with timeouts and regular expression pattern matching.
Much of what is described below is more readily understood by
looking at the
mpd.script file that is included with mpd.