![man minicom man minicom](https://i1.wp.com/www.einplatinencomputer.com/wp-content/uploads/2015/03/uart2.jpg)
Optional statement after that pattern, it will execute it. Expect keeps reading from the input until it reads a pattern that matches one of the specified ones. That means that anything that is being read from the modem by 'runscript', gets echoed to the screen. Within an 'expect' statement, but more about that later. By default, 'runscript' will exit after 120 seconds. can be a integer value or another variable. Set Sets the value of (which is a single letter a-z) to the value.
![man minicom man minicom](http://blog.wenzlaff.de/wp-content/uploads/2013/07/Bildschirmfoto-2013-07-07-um-10.30.31.png)
On return, the variable '$?' is set to the exit status of this command, so you can subsequently testĮxit Exit from "runscript" with an optional exit status. ! Runs a shell for you in which 'command' is executed. When the statement 'return' is encountered, control returns to the statement after the gosub. Gosub Jumps to another place in the program. Goto Jump to another place in the program. Label: Declares a label (with the name 'label') to use with goto or gosub.
![man minicom man minicom](https://downloadwap.com/thumbs6/java-software/preview/2020a/img/166232_minicomman_1.jpg)
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 Minicom passes three special environment variables: $(LOGIN), which is the username, $(PASS), If you need to send the ^ character, you must prefix it withĪlso $(environment_variable) can be used, for example $(TERM). \o - send character o ( o is an octal number)Ĭontrol characters can be used in the string with the ^ prefix (^A to ^Z, ^, ^^ and ^_). Within the following sequences are recognized: Timeout verbose sleep break call log Overview of Keywords Keywords Runscript recognizes the following commands: If also the logfile name is omitted, the log commands are ignored. If the homedir is omitted, runscript uses theĭirectory found in the $HOME environment variable. Home directory parameters are only used to tell the log command the name of the logfile and where to write it. All this is automatically taken care of if you run it from minicom. Meant for the local screen are directed to the stderr output. The program expects a script name and optionally a filename and the user's home directory asĪrguments, and it expects that it's input and output are connected to the "remote end", the system you are connecting to. Synopsis runscript scriptname ]ĭescription runscript is a simple script interpreter that can be called from within the minicomĬommunications program to automate tasks like logging in to a unix system or your favorite bbs. Runscript - script interpreter for minicom