Linux cli command runscript
2 minute read
NAME 🖥️ runscript 🖥️
script interpreter for minicom
SYNOPSIS
runscript scriptname [logfile [homedir]]
DESCRIPTION
runscript is a simple script interpreter that can be called from within the minicom communications program to automate tasks like logging in to a Unix system or your favorite BBS.
INVOCATION
The program expects a script name and optionally a filename and the user’s home directory as arguments, and it expects that it’s input and output are connected to the “remote end “, the system you are connecting to. All messages from runscript meant for the local screen are directed to the stderr output. All this is automatically taken care of if you run it from minicom. The logfile and home directory parameters are only used to tell the log command the name of the logfile and where to write it. If the homedir is omitted, runscript uses the directory found in the $HOME environment variable. If also the logfile name is omitted, the log commands are ignored.
KEYWORDS
Runscript recognizes the following commands:
expect send goto gosub return !< !
exit print set inc dec if timeout
verbose sleep break call log
OVERVIEW OF KEYWORDS
send <string>
<string> is sent to the modem. It is followed by a ’
‘. <string> can be: - regular text, e.g. ‘send hello’ - text enclosed in quotes, e.g. ‘send “hello world “’
Within <string> the following sequences are recognized:
- newline - carriage return - bell - backspace
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.