runscript - script interpreter for minicom
expect send goto gosub return ! exit print set inc dec if timeout verbose sleep break call log
Control characters can be used in the string with the ^ prefix
(^A to ^Z, ^[, ^, ^], ^^ and ^_). If you need to send the ^ chracter,
you must prefix it with the \ escape character.
Also $(environment_variable) can be used, for example $(TERM).
Minicom passes three special environment variables: $(LOGIN),
which is the username, $(PASS), which is the password, as
defined in the proper entry of the dialing directory, and
$(TERMLIN) which is the number of actual terminal lines on your
screen (that is, the statusline excluded).
expect { pattern [statement] pattern [statement] [timeout <value> [statement] ] .... }The most important command of all. Expect keeps reading from the input until it reads a pattern that matches one of the specified ones. If expect encounters an optional statement after that pattern, it will execute it. Otherwise the default is to just break out of the expect. 'pattern' is a string, just as in 'send' (see above). Normally, expect will timeout in 60 seconds and just exit, but this can be changed with the timeout command.
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |