⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _icmd.txt

📁 一个通讯程序源码
💻 TXT
📖 第 1 页 / 共 3 页
字号:
.*s 1 "Interactive Mode Commands"The following is a partial list of commands available in theinteractive (non-procedure) mode.  It is not necessary to enterthe entire command in most cases.  The portion of each commandwhich must be entered is capitalized in the following sectionheaders.Refer to the sections titled Interactive Command Historyand Line Editing for more information..*s 2 "AUTORZ : Automatic ZMODEM Receive"Usage: autorz [off | on | ]ECU in the interactive mode (no procedure executing) can interpret aSUB, 'B', '0', '0' receive data sequence as a ZMODEM ZRQINIT frame andautomatically begin a ZMODEM receive operation.  This command controlsor displays this feature.  By default, this feature is turned on..*s 2 "AX : ascii char to hex/oct/dec".DS Lusage: ax [<param>].DE<param> may be a single ASCII character, a standard ASCIIidentifier (such as ETX), or a two-character controlcharacter identifier (such as ^C, typed as a caret followedby a C).If no argument is supplied, a table of control charactersis printed containing decimal, octal, hex, ASCII identifiersand two-character control character identifier..*s 2 "BAud : set/display line baud rate".DS Lusage: baud [<baud-rate>].DE<baud-rate>, if specified, must be taken from the values110, 300, 600, 1200, 2400, 4800, 9600, 19200 and 38400.  Onsome systems, 19200 and 38400 may not be supported.  If a baudrate less than 300 is selected, 2 stop bits are automaticallyspecified; other baud rates set 1 stop bit.  If <baud-rate>is not supplied, the current baud rate is displayed.The setting may be automatically changed as the result of a 'dial'command.  See also the.B dialand.B paritycommand descriptions..*s 2 "BN : all console event alarm".DS LUsage: bn [ off | on | alert ]       bn [ 0 | 1 | 2 ].DE"bell notify": If no parameter is supplied, the current setting isdisplayed.  Specifying 0 or off disables the facility; 1 or on causesan audible alarm to be sounded upon receipt of a bell (0x07)character from the remote system; 2 or alert causes an audible alarmupon receipt of ANY characters.  This command may not be functionalin the version for your system.On SCO, different alarm styles are sent depending upon the type ofevent causing the alarms.  The alarms consist of Morse characters.Even if you do not understand Morse, the patterns of the alarmtones are distinct enough to be distinguishable.Additionally on SCO, if you are running ECU from a multiscreen,the alarms will be signalled even if you have temporarilyswitched to another screen.BN is set to 1 (on) when ECU begins executing..*s 2 "BReak : send break to remote".DS Lusage: break.DEThis command sends a break signal to the remote system..*s 2 "CD : change current directory".DS Lusage: cd [<dir-path>].DEThis command allows you to change the working directory ofthe ECU process.  If <dir-path> is supplied, the previousworking directory is displayed, and <dir-path> is made thenew working directory.  A history of previous directorychanges is maintained.  Entering the.B cdcommand shows the numbered history list and allows you to select a newdirectory by entering the number.  Other commands allowdeletion of directories from the list or saving the list tofile ~/.ecu/dir.  This file is automatically read at ECUstartup, providing a convenient list of directoriesavailable for quick selection.  If you edit this file by hand,you may force ECU to re-read the file using the %read option.The %xmitcd option transmits "cd "+current_directory+CR to the remote,a convenience to set the remote current directory to thesame as your local one.The %pushd # option pushes the current directory onto the same stackused by the.B pushdinteractive command and changes the current directory to the numbereddirectory specified by #.  Use the.B popdinteractive command to return to the previous directory.Other %options have usage information by entering them with no arguments..*s 2 "CONXon : console xon/xoff flow control".DS Lusage: conxon [<arg>]where <arg> is on    honor ^S/^Q local flow control (DEFAULT)               off   pass ^S/^Q to remote.DEThis command enables or disables console xon/xoff flow control.If the argument is omitted, the current flow control state is displayed.If on, typing ^S/^Q stops or restarts the local console driveroutput.  If off, ^S and ^Q are passed to the remote (for EMACS,of course -- who else?)..*s 2 "DA : decimal to ascii char".DS Lusage: da [<decimal-val>].DE<decimal-val> is a decimal value between 0 and 256; theparity (sign) bit is stripped and the equivalent ASCIIcharacter value is displayed.If no argument is supplied, a table of control charactersis printed containing decimal, octal, hex, ASCII identifiersand two-character control character identifier..*s 2 "DCDwatch".DS Lusage: dcdwatch [<dcdwatch-param>].DEThis command controls the DCD watcher.  The optional parameter may be:.DS L   y  yes - enable DCD watcher   n  no - disable DCD watcher   t  terminate - terminate ECU on loss of DCD.DEEntering the command without an argument shows the current status.The DCD watcher when enabled causes ECU to monitor the DCD line(within the limits imposed by the OS with its CLOCAL=0 functionality).When the watcher is on and DCD drops, ecu automatically performsthe action of the interactive or procedure.B hangupcommand.  If the 't'erminate option is chosen, then afterhangup processing is complete, the ECU program will terminate.  The state of the watcher may be changed by the use of the dialcommand which uses a directory entry that changes theDCD watcher status.The DCD watcher depends upon the tty driver to return zeroon a read when DCD is low when the termio flag CLOCAL is reset.The tty driver must ignore DCD if CLOCAL is set.If your system offers a "modem" and "direct" choice (by choiceof filename), you probably need to use the "modem" choice forthis to work properly.  However, the choice depends uponthe needs of the underlying driver you are using.For instance, if you are using FAS in a shared modem application,your getty should use the "modem" choice and ECU shoulduse the "direct" choice.  Some experimentation may be required..*s 2 "Dial : dial remote destination".DS Lusage: dial [<dial-param>].DE<dial-param> may take one of two forms, a telephone numberto dial (initial digit) or a logical name (initial letter)which can be found in the userphone directory (in file ~/.ecu/phone).If a telephone number is supplied, the phone number isdialed; you must first have set the desired baud rate andparity using the.B baudand.B paritycommands.(If the last character of a telephone number is a dollar sign,it is removed and is replaced with the contents of the first linein ~/.ecu/credit.  See the description of the dialing directory.)If a logical name is entered, the phone directory is searched; ifthe entry is found, the baud rate and parity is automaticallyset.  if a procedure file can be found in the current directory,the user's home .ecu subdirectory or the ECU library directory "ep"(normally /usr/local/lib/ecu/ep) whose name matches the logicalname, then the procedure is executed with the argument '!INTERACTIVE'.If <dial-param> is not supplied, then a screen-orientedself-documenting <:-)> directory manager is executed; you mayscan the directory to select a number to dial, as wellas add, remove and edit entries..*s 3 "Alternate Dialing Directory"The default dialing directory is ~/.ecu/phone.  You may change toanother directory by issuing the interactive .B dialcommand with no arguments to enter the dialing directorymenu, selecting 'c'hange dial directory, and entering the nameof a new directory.  The specified pathname must either bea fully qualified pathname or a pathname relative to thecurrent working directory.  Once an alternate directoryhas been selected, it will be used byboth the interactive command 'dial <logical>' and the dialing directory menu.Using the dial command with a directory entry may change the DCD watcher (dcdwatch) status.See the section on the.B dcdwatchcommand for more information.See the section below titled "Choosing a Dialout Line" formore information on using "Any" in the "tty"field of a directory entry..*s 3 "Multi-Number Redial Cycle"While in the  dialing directory, you may "mark" one or moreentries for a cyclical redial attempt.  When any entry ismarked, typing ENTER (carriage return or line feed/newline)causes each marked entry to be dialed in turn until one ofthe remote systems is successfully connected.  When asuccessful connection occurs, ECU unmarks the associated entry, leaving the others marked.  Thus, youmay mark several entries and merely reenter the dialingdirectory after each connection is finished and pressENTER to reenter the redial cycle.  If a single entryis marked, ECU pauses 15 seconds between each dialing attempt,otherwise 5 seconds.  Pressing 'c' will cause the pause tobe prematurely terminated and the next attempt to be made.Pressing your interrupt key (DEL, ^C or whatever) abortsthe cycle.  If you interrupt an active dialing attempt, you will be prompted as to whether or not you wish to cycle to the nextentry or abort the cycle.If no entries are marked for redial, the current, highlighteddirectory entry is used for dialing.To unmark a single entry, press 'M' (uppercase M).To unmark all entries, press 'U'..*s 3 "Automatic Dialing/Login Procedure"Upon dialing from the menu, if a procedure file can be found inthe current directory, the user's home .ecu subdirectory or theECU library subdirectory "ep" (normally /usr/local/lib/ecu/ep) whose namematches the logical name, then the procedure is executed with theargument '!MENU'.  It is the responsibility of the automaticallyexecuted procedure to establish connection with the remote system(by using the procedure.B dialcommand).  An example of an automatic login procedurecan be found in the distribution subdirectory 'models'named 'sysname.ep'.  A companion procedure is 'unixlogin.ep'.For example,.DS L.--[ dialing directory ]-- /u1/wht/.ecu/phone -- ...| entry name | telephone number | tty | baud P | ...| sysname    | 555-1234         | Any | 2400 N | ....DE.DS L#-----------------------------------------------------------# sysname.ep - procedure to call UNIX-like system 'sysname'## CONFIDENTIAL - This function should be chmod 0600 because# it contains a password which you probably don't want to be# common knowledge.## This procedure calls 'unixlogin.ep' to do the hard work.#-----------------------------------------------------------    mkvar $s_pwd(20)    # local variable preserves password    $s_pwd = 'password' # security by disappearing when the                        # procedure terminates#   also, by keeping the password text off the following line,#   the password will not be displayed if you abort (interrupt)#   the procedure    do 'unixlogin' %argv(0) 'username' $s_pwd 'ansi-or-whatever'.DE.*s 2 "DO : perform procedure".DS Lusage: do <procname> [<arg> ... ].DEPerform ECU procedure.  Ecu searches for <procname>.ep inthe current directory.  If the file is not found, the programlooks for the file in the ~/.ecu directory and in the ep subdirectoryof the library directory (usually /usr/local/lib/ecu/ep).  One or morearguments may be passed to the procedure.  Argumentsare made available in the called procedure by use of the.B %argcinteger function and.B %argvstring function.Unlike arguments to the.B doprocedure command, arguments to the.B dointeractive command are not quoted and may not containembedded spaces or tabs..*s 2 "DUplex : set/display duplex".DS Lusage: duplex [ Full | Half ].DEThis command specifies whether or not ECU is to locally echocharacters typed by you at the keyboard.  The overwhelmingmajority of remote systems provide the echo function, inwhich case full duplex must be used.  For the rare occasionswhen the remote system does not echo your keyboard input,setting half duplex will allow you to see what you aretyping.When communicating with another terminal in a "teletypeconversation", setting half duplex is generally required.In such cases, use of the .B nl ,.B nlin.Rand.B nloutcommands may also be required.The default setting for duplex is full..*s 2 "EXit : drop carrier, exit program".DS Lusage: exit.DEThis command terminates ECU promptly.  If your modem doesnot drop carrier upon loss of Data Terminal Ready (DTR),the command will terminate ECU,but may leave the communications line off hook.It is strongly recommended that you configure yourmodem to hang up the phone line when DTR drops.  A shorthandversion of this command exists: '.' is equivalent to .B exit ..*s 2 "FI : send text file to line".DS Lusage: fi [<filename>]  [ | f | e | s]                        f full speed transmission                        e echo pacing                        s single line transmission.DE"file insert": This command causes file characters to be insertedinto the transmit data stream as though they had been entered at thekeyboard.  No error correction is provided, although XON/XOFF flowcontrol is obeyed.If <filename> is not entered on the command line, a prompt for thefilename is made.  Once the filename has been entered and file hasbeen opened, you are asked whether the file should be transmitted atfull speed, by "echo pacing" or by a single line at a time.  You mayalso append an 'f', 'e' or 's' argument to the command line.If your remote can tolerate it, full speed transmission is thefastest.  Some systems are not capable of receiving large amount ofdata ("streaming data") without pauses.  Even with "full" speedtransmission, some "pacing" (inter-character delay) is introduced toease loading on the remote system.  Pressing the interrupt key (DEL)stops a full speed transmission.By specifying echo pacing, it is possible to increase the likelihood

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -