![]() ![]() If the package that you are unable to locate is from a PPA go to the PPA and check if it is available there for your release.To enable all repositories ( main, universe, restricted, multiverse), use the following commands: sudo add-apt-repository main ![]() Make sure you have enabled Ubuntu repositories: The following (general) procedure helps to solve this: When apt-get install is unable to locate a package, the package you want to install couldn't be found within repositories that you have added (those in in /etc/apt/sources.list and under /etc/apt//). This document was created byman2html,using the manual pages.There are many questions about this topic. Index NAME SYNOPSIS DESCRIPTION INVOCATION KEYWORDS OVERVIEW OF KEYWORDS NOTES BUGS AUTHOR BUGSRunscript should be built in to minicom. Especially thelast one is a good base to build on for your own scripts. Things will be easier if you have experience with BASIC.The minicom source code comes together with two examplescripts, scriptdemo and unixlogin. NOTESWell, I don't think this is enough information to make you anexperienced 'programmer' in 'runscript', but together with theexamples it shouldn't be too hard to write some useful scriptfiles. When that scriptfilefinishes without errors, the original script will continue. call Transfers control to another scriptfile. This is normally only usefulas argument to 'timeout' within an expect, because the defaultaction of timeout is to exit immediately. break Break out of an 'expect' statement. Normally, expect will timeout in 60seconds and just exit, but this can be changed with the timeoutcommand. 'pattern' is a string, just asin 'send' (see above). Otherwise the default isto just break out of the expect. If expect encounters an optional statementafter that pattern, it will execute it. Expect keeps reading from theinput until it reads a pattern that matches one of thespecified ones. expect expect The most important command of all. That means that anything that is beingread from the modem by 'runscript', gets echoed to the screen.This is so that you can see what 'runscript' is doing. Warning: thiscommand acts differently within an 'expect' statement, but moreabout that later. By default, 'runscript' will exit after120 seconds. can be, != or =.Eg, 'if a > 3 goto exitlabel'. can be a integer value or another variable. (default 1) set Sets the value of (which is a single letter a-z) to thevalue. exit Exit from "runscript" with an optional exit status. On return,the variable '$?' is set to the exit status of this command,so you can subsequently test it using 'if'. ! 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's can be nested. 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 withgoto or gosub. Default followed by '\r\n'.See the description of 'send' above. ![]() \o - send character o ( o is an octal number)Īlso $(environment_variable) can be used, for example $(TERM).Minicom passes two special environment variables: $(LOGIN),which is the username, and $(PASS), which is the password, asdefined in the proper entry of the dialing directory. text enclosed in quotes, eg 'send "hello world"' Within the following sequences are reckognized: KEYWORDS Runscript reckognizes the following commands:Įxpect send goto gosub return !exit print set inc dec iftimeout verbose sleep break call OVERVIEW OF KEYWORDS send is sent to the modem. All this is automatically taken care of ifyou run it from minicom. All messages from runscript ment for the local screen are directed to the stderr output. INVOCATIONThe program expects a script name as the only argument, and itexpects that it's input and output are connected to the"remote end", the system you are connecting to. Index NAMErunscript - script interpreter for minicom SYNOPSIS runscriptscriptname DESCRIPTION runscriptis a simple script interpreter that can be called from within the minicomcommunications program to automate tasks like logging in to a unix systemor your favorite bbs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |