ecu.preformatted.1 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915
  1. ECU(1) USER COMMANDS ECU(1)
  2. NAME
  3. ecu - serial asynchronous and telnet communications program
  4. DESCRIPTION
  5. ECU (Extended Call Utility) is a research and engineering
  6. communications program for several flavors of UNIX. ECU
  7. provides the classic terminal communications facility of
  8. passing keyboard data to a serial line (or a telnet TCP/IP
  9. connection if configured) and incoming data to the computer
  10. video display. In addition, a rich set of interactive com-
  11. mands, a procedure language, a dialing directory, a function
  12. key mapping feature, and session logging are available.
  13. The flexible procedure (script) language allows you to auto-
  14. mate many communications tasks. In addition to augmenting
  15. interactive tasks, by using shell scripts and ECU pro-
  16. cedures, ECU can perform batch-style communications sessions
  17. in an entirely "unattended" fashion.
  18. For full information, refer to the ECU Technical Description
  19. and the ECU Procedure Language manuals in the ECU source
  20. distribution.
  21. This man page describes what you need to get ecu started and
  22. connected, and how to use the interactive commands.
  23. Simple Startup - Initial Setup Menu
  24. ECU may be started in a number of ways through use of com-
  25. mand line switches, but the easiest is to enter
  26. ecu
  27. by itself. In this case, the screen is cleared and the fol-
  28. lowing screen, called the setup screen , will be presented.
  29. .--[ ecu 4.07T ]-----------------------------------------------.
  30. | |
  31. | Destination ________________________________________ |
  32. | |
  33. | |
  34. | |
  35. | tty: /dev/ttys0 |
  36. | |
  37. | duplex: F baud: 9600 parity: N (data bits 8) |
  38. | |
  39. | |
  40. | TAB:next END:proceed ^C: cmd mode ^D:phone dir ESC:quit ecu |
  41. `- logical phone directory entry, phone number or empty -------'
  42. Several choices may be made by navigating the setup screen.
  43. When you position to a field, helpful text is displayed on
  44. Version 4.07 10/18/96 1
  45. ECU(1) USER COMMANDS ECU(1)
  46. the bottom line of the form.
  47. The initial (default) values for some of the fields may be
  48. modified by command line switches or by the special pro-
  49. cedure "_rc.ep". Also, entering a dialing directory entry
  50. name in the override the defaults with the values in the
  51. directory entry. See the sections in the ECU Technical
  52. Description related to dialing and to the section in the ECU
  53. Procedure Language manual titled "_rc.ep".
  54. Destination
  55. If a dialing directory has been configured, a literal phone
  56. number need not be entered. You may enter a "logical" name
  57. matching the name of a directory entry.
  58. However, on your first invocation, you'll very likely have
  59. no directory. You have several options:
  60. 1. Enter a literal telephone number, (e.g. 18005551212).
  61. Hyphens and open and close parentheses may also
  62. be entered.
  63. 2. Press END to enter open the indicated serial port,
  64. beginning interactive mode to communicate
  65. directly with the attached DCE (modem).
  66. 3. Enter a "period-containing" hostname for a telnet
  67. call (if configured for telnet; see
  68. <hostname>
  69. below).
  70. 4. Press ^D to enter the telephone directory to enter
  71. your first directory entry.
  72. 5. Press ^C to enter command mode immediately (with no
  73. line attached). This has certain uses, but probably
  74. not for early use.
  75. 6. Press ESCape to exit ecu.
  76. Other Fields
  77. If your call is an async serial, not telnet, call, other
  78. fields in the setup form apply.
  79. The 'tty' field may be used to select an outgoing line other
  80. than the default. For important considerations on line
  81. choice, see the ECU Technical Description sections titled
  82. Choosing a Dialout Line and DCDwatch.
  83. Version 4.07 10/18/96 2
  84. ECU(1) USER COMMANDS ECU(1)
  85. The 'duplex' field may be used to select a duplex value
  86. other than the default 'F' (full).
  87. The 'baud' field may be used to select a bit rate value
  88. other than the default selected at Configure time.
  89. The 'parity' field may be used to select a parity value
  90. other than the default selected at Configure time.
  91. Keyboard Functions
  92. Special keyboard characters while filling in the startup
  93. screen are:
  94. Enter terminate entry in a field (or skip to
  95. the next field if you do not modify it)
  96. ^B back up to previous field
  97. Cursor Up same as ^B (if the key is available on
  98. your terminal and environment).
  99. TAB move to next field ... if nothing typed in
  100. the field, do not disturb contents
  101. Cursor Down same as TAB (if the key is available on
  102. your terminal and environment).
  103. END proceed with session, dialing remote if
  104. logical directory entry name or literal
  105. telephone number enetered
  106. ^D enter phone directory
  107. ^C enter command mode with no line attached
  108. ESC quit ecu without starting a session
  109. Command Line Switches and Arguments
  110. ECU can be started in a number of ways:
  111. o with no switches or arguments
  112. select options interactively; manual command to begin
  113. connection
  114. o with switches (excluding -p) and no arguments
  115. override some defaults for options but still enter
  116. interactive option selection; manual command to begin
  117. connection
  118. Version 4.07 10/18/96 3
  119. ECU(1) USER COMMANDS ECU(1)
  120. o zero or more switches (excluding -p) and one argument
  121. fully automatic startup to connect to the remote
  122. specified by the argument (a telephone number
  123. or dialing directory entry)
  124. o zero or more switches, with -p the last switch
  125. fully automatic startup by executing procedure whose
  126. name is specified by the first argument; the initial
  127. procedure receives the remainder of the command line
  128. arguments
  129. Usage Summary
  130. Usage: ecu [-l <ttyname>] [-b <baud_rate>] [-eon]
  131. [-h] [-t] [-P <phonedir>]
  132. [-F name] [-T <trace-level>] [-z]
  133. [-p <initial_proc> [-d] [-D] | <phone_number>
  134. <logical> | <hostname> ]
  135. -D unconditionally stop execution when -p initial
  136. procedure is done
  137. -F sets an alternate funckeymap name for the *keyboard*
  138. -P choose alternate phone directory (<phonedir> must be
  139. a full pathname)
  140. -T set procedure tracing to level: 0=none, 1=standard,
  141. 2=ECU-debugging
  142. -b choose bit rate (any UNIX rate 110-38400)
  143. -d stop execution if -p initial procedure fails
  144. -e even parity -o odd parity -n no parity
  145. -h half duplex ... default is full duplex
  146. -l choose line (/dev/<ttyname>)
  147. -n
  148. -p execute an initial procedure
  149. -t append NL to incoming and outgoing CR characters
  150. -z if telnet connection, show options traffic
  151. <phone_number> is either an actual number or a dialing
  152. directory entry name
  153. If configured for telnet use, if a period '.' appears in
  154. phone number, contact host by that name using telnet; a
  155. trailing period will be removed.
  156. Switches
  157. Many switches are used to override defaults specified at the
  158. time the Confifgure procedure was used. Note these defaults
  159. may also be overriden interactively if the command does not
  160. specify automatic startup option (-p or dialing argument).
  161. Also, the value chosen by a dialing directory entry or an
  162. initial procedure will override the Configured default
  163. and/or the value specified by this switch.
  164. Version 4.07 10/18/96 4
  165. ECU(1) USER COMMANDS ECU(1)
  166. -b <baud>
  167. This switch overrides the default bit rate. Any valid UNIX
  168. rate may be chosen. ECU chooses the number of stop bits
  169. based on the bit rate. Rates below 300 baud get 2 stop
  170. bits. Rates 300 baud and above get one stop bit.
  171. -d
  172. The -d switch instructs ECU to "die" (terminate with error
  173. status) if an initial procedure (-p) fails. This switch
  174. ensures a batch ECU execution will hang up any connection
  175. and terminate if a procedure error occurs. See also -D
  176. below.
  177. Absence of the -d and -D switches causes ecu (upon any com-
  178. pletion of the initial procedure) to enter the 1) interac-
  179. tive mode if a line was successfully attached by the pro-
  180. cedure or 2) the setup screen if no line was attached.
  181. -e, -o, -n
  182. Normally, ECU starts up with data bits and parity chosen at
  183. Configure time. The -e , -o and -n switches allow you to
  184. override the default.
  185. Since combinations like eight data bit and even parity or
  186. seven data bits and no parity are not in ECU's capability
  187. to use, the parity selection also dictates the choice of
  188. data bits. Even or odd parity implies seven data bits. No
  189. parity implies eight data bits.
  190. -h
  191. Normally, ECU starts up in the full duplex mode. If half
  192. duplex is desired, the -h switch is used.
  193. -l ttyspec
  194. When ECU starts up, it normally chooses a line as described
  195. in "Choosing a Dialout Line" in the ECU Technical Descrip-
  196. tion. Specifying the -l switch overrides the default tty
  197. specified at Configure time. Depending upon other command
  198. line options, this switch may be nothing more than a hint.
  199. For important considerations on line choice, see the sec-
  200. tions titled "Choosing a Dialout Line" and "DCDwatch".
  201. Two styles of argument to -l allow line selection by two
  202. methods.
  203. Of course, no -l is meaningful for a telnet destination.
  204. Version 4.07 10/18/96 5
  205. ECU(1) USER COMMANDS ECU(1)
  206. The ususal argument to the switch is the base name of the
  207. tty (e.g., "tty1a" or "acu0").
  208. Note to old users of ECU: In previous SCO versions of ECU,
  209. since ttys were generally all named with the prefix "tty",
  210. ECU allowed you to omit the "tty" (e.g., "1a" or "4g"). This
  211. is no longer the case.
  212. Alternatively, if your platform supports HDB UUCP, you may
  213. choose a line by UUCP Devices type by specifying the type
  214. with a leading equals sign. You must also explicitly set
  215. the bit rate with -b (unless the default bit rate is accept-
  216. able).
  217. ecu -l=VoiceDial -b2400
  218. searches the UUCP Devices file for an entry whose type is
  219. ``VoiceDial'' that accepts 2400 baud.
  220. -p <proc>
  221. The -p switch causes ECU to execute the procedure <proc>
  222. ("<proc>.ep") immediately upon startup. Such a procedure is
  223. termed the initial procedure. It is recommended that, when
  224. used, -p be the last switch on the command line. All non-
  225. switch arguments after <proc> are passed as arguments to the
  226. initial procedure (see the descriptions of the integer func-
  227. tion %argc and the string function %argv in the Procedure
  228. Manual).
  229. For example,
  230. ecu -p batchjob remsys 22
  231. automatically executes the procedure command equivalent
  232. do 'batchjob' 'remsys' '22'
  233. The initial procedure may read command line options with
  234. functions like %line , %baud and %parity . It is also free
  235. to override any of these values it wishes. See the ECU Pro-
  236. cedure Manual for more information.
  237. -t
  238. The -t switch instructs ECU to map incoming and outgoing
  239. carriage returns to carriage return/line feed pairs. This
  240. is helpful if the remote connection will be to a display
  241. terminal rather than a computer. Use of the -h switch may
  242. also be necessary.
  243. Version 4.07 10/18/96 6
  244. ECU(1) USER COMMANDS ECU(1)
  245. The interactive commands nlin and nlout also control this
  246. feature.
  247. -C
  248. The -C switch causes the compile-time configuration of ECU
  249. to be displayed.
  250. -D
  251. The -D switch instructs ECU to unconditionally terminate
  252. when an initial procedure finishes. Contrast with the -d
  253. switch .
  254. -F name
  255. Normally, the TERM environment variable is used to determine
  256. the funckeymap entry (keyboard configuration) to be used.
  257. Sometimes, the TERM variable is not adequate for identifying
  258. your keyboard arrangement. The -F switch switch, like the
  259. $ECUFUNCKEY environment variable, allows you to use override
  260. the funckeymap entry used. For more information, see the
  261. section titled "Function Key Mapping (Recognition)".
  262. -P phonedir
  263. The -P switch causes ECU to begin execution using an alter-
  264. nate phone directory. The default is ~/.ecu/phone. You
  265. should specify a full pathname if you anticipate using the
  266. change directory command once ecu starts.
  267. -T level
  268. The -T switch sets the procedure language trace level.
  269. <level> is a decimal digit. 0 is for no tracing (the
  270. default) and 1 is for tracing. Values higher than 1 are for
  271. debugging ECU and have varying effects from revision to
  272. revision.
  273. -z
  274. If configured for telnet use, show in-band telnet option
  275. traffic on screen. This is useful for debugging ECU telnet
  276. connections with a host. This feature is controlled by the
  277. telopt interactive command once ECU is running (although
  278. there is very little telnet traffic after a connection has
  279. "matured").
  280. Non-Switch Arguments
  281. Arguments are optional. <phone_number> or <logical> may
  282. appear when the -p switch is absent. One or more <arg>
  283. Version 4.07 10/18/96 7
  284. ECU(1) USER COMMANDS ECU(1)
  285. arguments may appear when the -p switch is used. These
  286. arguments are handled as described by "-p" above.
  287. <phone_number>
  288. This type of argument has a digit as its initial character
  289. and represents an actual telephone number to be passed to a
  290. modem dialer program or Dialers chat script. The string may
  291. contain non-numeric characters if appropriate for a dialer
  292. program, such as dialTBIT or dialgT2500 (see the gendial
  293. subdirectory). For example:
  294. ecu -ltty2a -b 19200 -e 5551212C
  295. uses tty2a (assumed to be connected to a Trailblazer modem
  296. because of the dialer-specific telephone number) and estab-
  297. lishes a 19200 baud, even parity PEP Compressed connection
  298. after dialing 5551212.
  299. <logical>
  300. This type of argument has an alphabetic initial character
  301. and contains no period characters. such an argument causes
  302. the dialing directory entry by that name to be dialed. The
  303. line may be specified by '-l', but if the dialing directory
  304. specifies a line (tty field contains other than 'Any'), the
  305. dialing directory entry will override it. The '-b', '-e'
  306. and '-o' switches are ignored; the values specified by the
  307. dialing directory entry are used. The '-t' and '-h'
  308. switches are valid and honored if present.
  309. <hostname>
  310. The following holds true only if ECU supports telnet on your
  311. system. If a period ('.') is present in the first non-
  312. switch command line argument, the argument is treated as a
  313. hostname. An internet telnet connection is attempted to
  314. <hostname>.
  315. If you wish to specify a simple hostname (with no domain
  316. part) such as "localhost", append a period to the name (mak-
  317. ing, for instance "localhost."). The period will be removed
  318. by ECU.
  319. If a colon followed by a number is appended to the hostname,
  320. that number will be used as the port to contact instead of
  321. the default telnet port 23.
  322. During a telnet session, many async-style parameters simply
  323. do not apply.
  324. Version 4.07 10/18/96 8
  325. ECU(1) USER COMMANDS ECU(1)
  326. Examples:
  327. ecu watsun.cc.columbia.edu
  328. ecu localhost search directory for 'localhost'
  329. ecu localhost. call my host's telnet port
  330. ecu localhost.:25 call my host's SMTP port
  331. <arg>
  332. This type of argument is passed to an initial procedure when
  333. the -p switch is present.
  334. ecu -p unixlogin user pwd ansi43
  335. executes unixlogin.ep with arguments 'user' 'pwd' 'ansi43'
  336. For more detail, refer to the description of -p , -d and -D
  337. .
  338. Environment Variables
  339. Prior to starting ECU, it is useful, but not necessary, to
  340. establish two environment variables, ECUPROMPT and ECUHELP.
  341. ECUPROMPT
  342. The ECUPROMPT environment variable determines the prompt
  343. printed by ECU when the interactive command key ("HOME") is
  344. pressed. When you first run ECU, try setting it to your
  345. name, e. g.,
  346. setenv ECUPROMPT Ralph if you use csh
  347. ECUPROMPT=Ralph if you use sh, ksh, etc.
  348. export ECUPROMPT
  349. Then, when you see how it used, you may wish to establish a
  350. more permanent choice in your .login or .profile.
  351. ECUHELP
  352. Ordinarily, ECU looks for interactive command help informa-
  353. tion in "ecuhelp.data" (in the ecu library directory, nor-
  354. mally /usr/local/lib/ecu). The ECUHELP environment may be
  355. set to the complete pathname of the ecu help file if an
  356. alternate file is to be used.
  357. The help file is explained better in the section titled
  358. "Online Command Dictionary" in the ECU Technical Descrip-
  359. tion..
  360. Version 4.07 10/18/96 9
  361. ECU(1) USER COMMANDS ECU(1)
  362. ECUFUNCKEY
  363. See the description of the -F command line switch and the
  364. section titled "Function Key Mapping (Recognition)" in the
  365. ECU Technical Description.
  366. INTERACTIVE COMMANDS
  367. This section describes each ECU interactive command.
  368. The next four sections list commands by category. The
  369. remaining sections describe each individual command in some
  370. detail.
  371. ECU does not require the complete expression of most
  372. interactive commands. For instance: typing attr is suffi-
  373. cient for ECU to recognize the command attrtest.
  374. The capitalized portion of the command names appearing below
  375. represents the portion of the command you must type for ECU
  376. to recognize the command. (Note you don't captitalize any
  377. command characters you type.)
  378. You also may access this information using the ECU interac-
  379. tive help command (whose information may be more up-to-date
  380. than this).
  381. GENERAL COMMANDS
  382. ANSIf ANSI filter state
  383. AX ascii char to hex/oct/dec
  384. ATTRTest console attribute test
  385. BN all console event alarm
  386. CD change current directory
  387. CONXon console software flow control
  388. DA decimal to ascii char
  389. ETO ESC/fkey timeout
  390. EXit hang up, exit program
  391. FI send text file to line
  392. FKEy function key definition
  393. FKMap redefine function key map
  394. HElp invoke help
  395. KBDTest test keyboard mapping
  396. LOFf turn off session logging
  397. LOG session logging control
  398. MKDir mkdir <dirname>
  399. OA octal to ascii char
  400. PId display process ids
  401. POpd pop to previous directory
  402. PUshd push to new directory
  403. PWd print working directory
  404. REV ECU revision/make date
  405. SDName select screen dump name
  406. Version 4.07 10/18/96 10
  407. ECU(1) USER COMMANDS ECU(1)
  408. STat general status
  409. TIme time of day
  410. TD termcap variable display
  411. TTy console tty name
  412. XA hex to ascii char
  413. ! execute shell (tty)
  414. $ execute shell (comm line)
  415. - execute program
  416. ? get help
  417. COMMUNICATIONS-RELATED COMMANDS
  418. AYt send telnet Are You There?
  419. BAud set/display line bit rate
  420. BReak send break to remote
  421. CLrx clear local transmit XOFF
  422. DCDwatch control DCD disconnect
  423. Dial dial remote destination
  424. DUplex set/display duplex
  425. ERTo expect-respond timeout
  426. ERVerbose expect-respond verbosity
  427. HAngup hang up modem
  428. NL display CR/LF mapping
  429. NLIn receive CR/LF mapping
  430. NLOut transmit CR/LF mapping
  431. PARity set/display line parity
  432. REDial redial last number
  433. RTScts RTS/CTS flow control
  434. SGR send command/get response
  435. SGRTO1 set SGr 1st char timeout
  436. SGRTO2 set SGr later char timeout
  437. TELopt telnet options display state
  438. TS termio display
  439. XOn line xon/xoff flow control
  440. FILE TRANSFER COMMANDS
  441. AUTORZ auto ZMODEM receive state
  442. RK receive via C-Kermit
  443. RX receive via XMODEM/CRC
  444. RY receive via YMODEM Batch
  445. RZ receive via ZMODEM/CRC32
  446. SK send via C-Kermit
  447. SX send via XMODEM/CRC
  448. SY send via YMODEM Batch
  449. SZ send via ZMODEM/CRC32
  450. XLog protocol packet logging
  451. PROCEDURE COMMANDS
  452. DO perform procedure
  453. PCmd execute procedure command
  454. PLog control procedure logging
  455. Version 4.07 10/18/96 11
  456. ECU(1) USER COMMANDS ECU(1)
  457. PTrace control procedure trace
  458. Detailed Description of Each Command
  459. ATTRTest : console attribute test
  460. Usage: attrtest
  461. This command tests ECU's console attributes. You can try it
  462. if you like, but it is primarily for testing an ECU port.
  463. AX : ascii char to hex/oct/dec
  464. Usage: ax [<param>]
  465. <param> may be a single ASCII character, a standard ASCII
  466. identifier (such as ETX), or a two-character control charac-
  467. ter identifier (such as ^C, typed as a caret followed by a
  468. C).
  469. If no parameter is supplied, a table of control characters
  470. is printed containing decimal, octal, hex, ASCII identifiers
  471. and two-character control character identifier.
  472. XA : hex to ascii char
  473. Usage: xa [<hex-val>]
  474. <hex-val> is a hexadecimal value between 0 and FF; the par-
  475. ity (sign) bit is stripped and the equivalent ASCII charac-
  476. ter value is displayed.
  477. If no parameter is supplied, a table of control characters
  478. is printed containing decimal, octal, hex, ASCII identifiers
  479. and two-character control character identifier.
  480. OA : octal to ascii char
  481. Usage: oa [<octal-val>]
  482. <octal-val> is a octal value between 0 and 0377; the parity
  483. (sign) bit is stripped and the equivalent ASCII character
  484. value is displayed.
  485. If no parameter is supplied, a table of control characters
  486. is printed containing decimal, octal, hex, ASCII identifiers
  487. and two-character control character identifier.
  488. DA : decimal to ascii char
  489. Usage: da [<decimal-val>]
  490. Version 4.07 10/18/96 12
  491. ECU(1) USER COMMANDS ECU(1)
  492. <decimal-val> is a decimal value between 0 and 0377; the
  493. parity (sign) bit is stripped and the equivalent ASCII char-
  494. acter value is displayed.
  495. If no parameter is supplied, a table of control characters
  496. is printed containing decimal, octal, hex, ASCII identifiers
  497. and two-character control character identifier.
  498. ANSIf : ANSI filter state
  499. Usage: ansif [off | on | ]
  500. This command displays or controls the state of the ECU ANSI
  501. filter. If on, ECU interprets the incoming bytestream as
  502. addressing an ANSI terminal; the control sequences are
  503. detected and reissued to the local console per its terminal
  504. database description. In addition, a virtual screen image
  505. is kept by ECU.
  506. If off, the inciming bytestream is passed directly to the
  507. local console. No virtual screen image is kept.
  508. AUTORZ : auto ZMODEM receive state
  509. Usage: autorz [ | 1 | 0 | n | y ]
  510. This command displays or controls the state of the ECU
  511. autorz switch. If on, an incoming ZMODEM preamble will
  512. automatically start a ZMODEM receive operation.
  513. AYt : send telnet Are You There?
  514. Usage: ayt
  515. If your ECU is in telnet connection, this command sends the
  516. AYT (Are You There?) command to the remote host. If the
  517. remote is sane (and so disposed), it will reply with some-
  518. thing like "[Yes]".
  519. BAud : set/display line bit rate
  520. Usage: baud [<bit-rate>]
  521. <bit-rate>, if specified, must be taken from the values 110,
  522. 300, 600, 1200, 2400, 4800, 9600, 19200 and 38400. On some
  523. systems, 19200 and 38400 may not be supported. If a bit
  524. rate less than 300 is selected, 2 stop bits are automati-
  525. cally specified; other bit rates set 1 stop bit. If <bit-
  526. rate> is not supplied, the current bit rate is displayed.
  527. The setting may be automatically changed as the result of a
  528. 'dial' command. See also the 'dial' and 'parity' command
  529. Version 4.07 10/18/96 13
  530. ECU(1) USER COMMANDS ECU(1)
  531. descriptions.
  532. BN : all console event alarm
  533. Usage: bn [ off | on | alert ]
  534. bn [ 0 | 1 | 2 ]
  535. "bell notify": If no parameter is supplied, the current set-
  536. ting is displayed. Specifying 0 or off disables the facil-
  537. ity; 1 or on causes an audible alarm to be sounded upon
  538. receipt of a bell (0x07) character from the remote system; 2
  539. or alert causes an audible alarm upon receipt of ANY charac-
  540. ters. This command may not be functional in the version for
  541. your system.
  542. BReak : send break to remote
  543. Usage: break
  544. This command sends a "break" signal to the remote system.
  545. On asynchronous ports this is done with a "long space
  546. disconnect." On telnet, an Interrupt Process command is
  547. sent.
  548. CD : change current directory
  549. Usage: cd [<dir-path>]
  550. This command allows you to change the working directory of
  551. the ECU process. If <dir-path> is supplied, the previous
  552. working directory is displayed, and <dir-path> is made the
  553. new working directory. A history of previous directory
  554. changes is maintained. Entering the 'cd' command shows the
  555. numbered history list and allows you to select a new direc-
  556. tory by entering the number. Other commands allow deletion
  557. of directories from the list or saving the list to file
  558. ~/.ecu/dir. This file is automatically read at ECU startup,
  559. providing a convenient list of directories available for
  560. quick selection.
  561. CLrx : clear local transmit XOFF
  562. Usage: clrx
  563. The 'clrx' command simulates receipt of an XON by ECU. It
  564. is useful in the rare circumstances that an XOFF is received
  565. by ECU from a remote system and no later XON is received.
  566. CONXon : console software flow control
  567. Usage: conxon [<arg>]
  568. where <arg> is on honor ^S/^Q local flow control
  569. Version 4.07 10/18/96 14
  570. ECU(1) USER COMMANDS ECU(1)
  571. (DEFAULT)
  572. off pass ^S/^Q to remote
  573. This command enables or disables console xon/xoff flow con-
  574. trol. If the argument is omitted, the current flow control
  575. state is displayed. If on, typing ^S/^Q stops or restarts
  576. the local console driver output. If off, ^S and ^Q are
  577. passed to the remote (for EMACS, of course -- who else?).
  578. DCDwatch : control DCD disconnect
  579. Usage: dcdwatch [<dcdwatch-param>]
  580. This command controls the DCD watcher. The optional parame-
  581. ter may be:
  582. y yes - enable DCD watcher
  583. n no - disable DCD watcher
  584. t terminate - terminate ECU on loss of DCD
  585. Entering the command without an argument shows the current
  586. status.
  587. The DCD watcher when enabled causes ECU to monitor the DCD
  588. line (within the limits imposed by the OS with its CLOCAL=0
  589. functionality). When the watcher is on and DCD drops, ECU
  590. automatically performs the action of the interactive or pro-
  591. cedure hangup command. If the 't'erminate option is chosen,
  592. then after hangup processing is complete, the ECU program
  593. will terminate.
  594. The state of the watcher may be changed by the use of the
  595. dial command which uses a directory entry that changes the
  596. DCD watcher status. See the manual sections on the interac-
  597. tive commands 'dcdwatch' and 'dial'.
  598. Dial : dial remote destination
  599. Usage: dial [<dial-param>]
  600. <dial-param> may take one of two forms, a telephone number
  601. to dial or a logical name which can be found in the user
  602. phone directory (in file ~/.ecu/phone).
  603. If a telephone number is supplied, the phone number is
  604. dialed; you must first have set the desired bit rate and
  605. parity using the 'baud' and 'parity' commands. If a logical
  606. name is entered, the phone directory is searched; if the
  607. entry is found, the bit rate and parity is automatically set
  608. and the number dialed.
  609. If <dial-param> is not supplied, then a screen-oriented
  610. self-documenting directory manager is executed; you may scan
  611. the directory to select a number to dial, as well as add,
  612. Version 4.07 10/18/96 15
  613. ECU(1) USER COMMANDS ECU(1)
  614. remove and edit entries. See also 'baud' and 'parity'.
  615. DO : perform procedure
  616. Usage: do <procname> [<arg> ... ]
  617. Perform ECU procedure. Ecu searches for <procname>.ep in
  618. the current directory. If the file is not found, the pro-
  619. gram looks for the file in the ~/.ecu directory. One or
  620. more arguments may be passed to the procedure.
  621. DUplex : set/display duplex
  622. Usage: duplex [ Full | Half ]
  623. This command specifies whether or not ECU is to locally echo
  624. characters typed by you at the keyboard. The overwhelming
  625. majority of remote systems provide the echo function, in
  626. which case full duplex must be used. For the rare occasions
  627. when the remote system does not echo your keyboard input,
  628. setting half duplex will allow you to see what you are typ-
  629. ing.
  630. When communicating with another terminal in a "teletype
  631. conver- sation", setting half duplex is generally required.
  632. In such cases, use of the 'nl', 'nlin' and 'nlout' commands
  633. may also be required.
  634. The default setting for duplex is full.
  635. ERTo : expect-respond timeout
  636. Usage: erto [<msec>]
  637. This command specifies the default timeout period (in mil-
  638. liseconds) of the next "expect" in an ECU-executed expect-
  639. respond script. Remember that ECU expect-respond scripts
  640. can change timeouts on their own, so this number may not
  641. "stick." Entering the command with no arguments displays the
  642. current value (which, again, may not be the value ECU
  643. started with or the value you last selected).
  644. ERVerbose : expect-respond verbosity
  645. Usage: erverbose [<true-false>]
  646. This command specifies the verbosity level of an ECU-
  647. executed expect-respond script. Entering the command with
  648. no argument displays the current status of verbosity. To
  649. change the value, enter an argument beginning with an
  650. lower-case 'y' or 'n'.
  651. Version 4.07 10/18/96 16
  652. ECU(1) USER COMMANDS ECU(1)
  653. Examples:
  654. erv
  655. erv y
  656. ETO : ESC/fkey timeout
  657. Usage: eto [msec]
  658. This experimental command sets or displays the "escape
  659. timeout" for non-multiscreen function key detection. Use
  660. caution: although the command has a lower limit, you may set
  661. the value low enough not to be able to use the HOME key!
  662. EXit : hang up, exit program
  663. Usage: exit
  664. This command terminates ECU promptly. If your modem does
  665. not drop carrier upon loss of Data Terminal Ready (DTR), you
  666. must use the 'hangup' command prior to issuing the 'exit'
  667. command. It is strongly recommended that you configure your
  668. modem to hang up the phone line when DTR drops. A shorthand
  669. version of this command exists: '.' is equivalent to 'exit'.
  670. FI : send text file to line
  671. Usage: fi [<filename>]
  672. "file insert": This command causes file characters to be
  673. inserted into the transmit data stream as though they had
  674. been entered at the keyboard. If <filename> is not entered
  675. on the command line, a prompt for the filename is made.
  676. Once the filename has been entered and file has been opened,
  677. you are asked whether the file should be transmitted at full
  678. speed, by "echo pacing" or by a single line at a time. You
  679. may also append an 'f', 'e' or 's' argument to the command
  680. line. If your remote can tolerate it, full speed transmis-
  681. sion is the fastest. Pressing the interrupt key (DEL) stops
  682. a full speed transmission. By specifying echo pacing, it is
  683. possible to increase the likelihood of proper receipt.
  684. Pressing the interrupt key (DEL) stops an echo paced
  685. transmission. As a last resort, if echo pacing is not work-
  686. ing for you, (i.e., you are using the command in an environ-
  687. ment where the remote does not echo your characters), use
  688. single line at a time transmission. You must press the
  689. space key to initiate sending each line. Pressing 'ESC' or
  690. 's' stops the transfer.
  691. FKEy : function key definition
  692. Usage: fkey [<keyset_name>]
  693. Version 4.07 10/18/96 17
  694. ECU(1) USER COMMANDS ECU(1)
  695. This command allows the mapping of function keys F1-F12,
  696. PgUp, PgDn, End and Ins and the cursor up, down, left and
  697. right keys to emit a desired sequence of characters when a
  698. function key is pressed. <keyset_name> specifies which key
  699. set in ~/.ecu/keys is to be selected: Sample entry in
  700. ~/.ecu/keys:
  701. hayes
  702. F1:escape:+ + +
  703. F2:autoans:A T S 0 = 1 cr
  704. F3:dial:A T D T
  705. bbs
  706. F1:cancel:^K
  707. F2:yes:y cr
  708. If a keyset_name matches a logical dial directory name, it
  709. is loaded when the number is dialed.
  710. FKMap : redefine function key map
  711. Usage: fkmap display current mapping
  712. fkmap <keyname> display single key mapping
  713. fkmap <keyname> <keylist> modify a key's mapping
  714. fkmap -l <name>
  715. fkmap -r reset to original mapping
  716. fkmap -s <file> append current to file
  717. This command manages the mechanism ECU uses to recognize
  718. function keys when they are entered at the console. If sup-
  719. plied, the first argument to the command must be the recog-
  720. nized name of a function key from the list:
  721. F1 F2 F3 F4 F5 F6 F7 F8 F9 F10 F11 F12 Home End PgUp PgDn
  722. CUP CUL CU5 CUR CUD
  723. If only one argument is supplied, the mapping for the speci-
  724. fied key is displayed. If more than one argument is sup-
  725. plied, the keyboard mapping is changed. Arguments 2-n are
  726. character code specifiers in the format used to define a
  727. funckeymap entry.
  728. WARNING: If found to be syntactically correct, a mapping
  729. change is installed immediately. If incorrect mapping of
  730. the HOME key is requested, you may lose control of ECU.
  731. For a description of the other options, see the manual.
  732. HAngup : hang up modem
  733. Usage: hangup
  734. This causes DTR to be momentarily interrupted, terminating
  735. Version 4.07 10/18/96 18
  736. ECU(1) USER COMMANDS ECU(1)
  737. any outstanding connection. Your DCE (modem) must be able
  738. to drop carrier upon loss of DTR.
  739. HElp : invoke help
  740. Usage: help [<cmd-name>]
  741. Issuing this command with no argument displays a list of
  742. commands followed by a request for a command for further
  743. information.
  744. KBDTest : test keyboard mapping
  745. Usage: kbdtest
  746. This command runs a keyboard test which asks you to press
  747. function keys (e.g., F1). For each key pressed, ECU gives
  748. you the actual character sequence generated by the key. It
  749. also tells you which function key it recognizes (if any).
  750. mapping of keyboard generated character sequences to ECU
  751. internal key codes. The command is useful for verifying and
  752. debugging a "funckeymap" entry. To exit the test at any
  753. time, press the escape key.
  754. LOFf : turn off session logging
  755. Usage: loff
  756. This command is shorthand for 'log off'. If session logging
  757. is active, it is turned off.
  758. LOG : session logging control
  759. Usage: log [-s] [-r] [ | off | filename ]
  760. -s "scratch" previous file contents; otherwise append
  761. -r "raw" logging; otherwise non-printable characters
  762. other than tab and NL are omitted from the log
  763. This command controls session logging; issuing the command
  764. with no argument causes the status of session logging to be
  765. displayed. The special argument 'off' causes active logging
  766. to be terminated. Other argument values cause logging to
  767. start using the argument as a filename. Issuing a 'log
  768. filename' command when logging is already active causes the
  769. previous file to be closed and the new file to be opened.
  770. Switches are meaningful only when used in conjunction with a
  771. filename to start logging.
  772. MEMstat
  773. Usage: memstat
  774. Version 4.07 10/18/96 19
  775. ECU(1) USER COMMANDS ECU(1)
  776. Experimental malloc display. -lmalloc bug may report
  777. erroneous data.
  778. MKDir : mkdir <dirname>
  779. Usage: mkdir <dirpath>
  780. Create a new directory named <dirpath>.
  781. NIce : change process nice (0-39)
  782. Usage: nice [niceval]
  783. This command sets or displays the process nice value. The
  784. usual rules apply (hint: you might accidently nice4 yourself
  785. into not getting enough CPU!)
  786. NL : display CR/LF mapping
  787. Usage: nl
  788. Display the current setting of CR/LF mapping. For more
  789. information, refer to the 'nlin' and 'nlout' command
  790. descriptions.
  791. NLIn : receive CR/LF mapping
  792. Usage: nlin [<y-n>]
  793. This command controls whether or not a newline (NL/LF) char-
  794. acter is sent to the screen upon receipt of a carriage
  795. return (CR) from the remote system. Most remote computers
  796. supply a NL after CR. When communicating with another ter-
  797. minal in a "teletype conversation", this is generally not
  798. the case (see also the 'duplex' command).
  799. Issuing the command without <y-n> causes the current setting
  800. to be displayed. The format of <y-n> is flexible: 'y' or
  801. '1' enables appending NL to CR, 'n' or '0' causes the
  802. feature to be disabled.
  803. NLOut : transmit CR/LF mapping
  804. Usage: nlout [<y-n>]
  805. This command controls whether or not a newline (NL/LF) char-
  806. acter is sent to the remote system upon transmission of a
  807. carriage return (CR) entered by the keyboard. Most remote
  808. computers do not require (indeed "dislike") a NL after CR.
  809. When communicating with another terminal in a "teletype
  810. conversation", this is generally not the case (see also the
  811. 'duplex' command).
  812. Version 4.07 10/18/96 20
  813. ECU(1) USER COMMANDS ECU(1)
  814. Issuing the command without <y-n> causes the current setting
  815. to be displayed. The format of <y-n> is flexible: 'y' or
  816. '1' enables appending NL to CR, 'n' or '0' causes the
  817. feature to be disabled.
  818. PARity : set/display line parity
  819. Usage: parity [ None | Even | Odd ]
  820. This command controls the parity of characters transmitted
  821. by the keyboard. Issuing the command with no parameter
  822. displays the current setting. When the parameter is sup-
  823. plied, only the first character is required. Even or odd
  824. parity implies seven data bits; no parity implies eight data
  825. bits. Parity of incoming characters is not checked.
  826. The setting may be automatically changed as the result of a
  827. 'dial' command. See also the 'baud' and 'dial' command
  828. descriptions.
  829. PCmd : execute procedure command
  830. Usage: pcmd <procedure command>
  831. The 'pcmd' command allows a procedure command to be issued
  832. from the interactive command prompt. It is primarily
  833. intended for debugging procedure commands, but it is avail-
  834. able for any use. Certain commands are illogical from the
  835. interactive mode. Attempting, for instance to execute a
  836. `whilei' will result in the error `not executing a pro-
  837. cedure.'
  838. PId : display process ids
  839. Usage: pid
  840. This command displays the process id of the ECU transmitter
  841. process, the ECU receiver process and the process ids of
  842. ECU's parent and group.
  843. PLog : control procedure logging
  844. Usage: plog [<filename> | off | ]
  845. The 'plog' command turns on or off procedure logging. If
  846. the argument to the command is 'off', logging is turned off,
  847. otherwise logging is started on the specified file. If no
  848. argument is specified, the status of procedure logging is
  849. displayed.
  850. PUshd : push to new directory
  851. Version 4.07 10/18/96 21
  852. ECU(1) USER COMMANDS ECU(1)
  853. Usage: pushd [ | <dir> ]
  854. This command either 1) pushes the current directory pathname
  855. onto a stack and establishes a new directory or 2) shows the
  856. current stack. Issuing the command with no argument
  857. displays the stack.
  858. PTrace : control procedure trace
  859. Usage: ptrace [ 0 | 1 | on | off]
  860. This command controls whether or not procedure execution is
  861. to be traced.
  862. POpd : pop to previous directory
  863. Usage: pushd [ | <#> | all ]
  864. This command pops one, many or all of the entries off direc-
  865. tory stack, restoring a previous directory. No argument
  866. results in one directory being popped. A numeric argument
  867. pops the stack to a specified level. 'all' is equal to the
  868. numeric value 0 (and may be abbreviasted 'a').
  869. PWd : print working directory
  870. Usage: pwd
  871. This command prints the current working directory of the ECU
  872. process.
  873. RK : receive via C-Kermit
  874. Usage: rk
  875. This command searches the PATH list for 'ckermit' (Columbia
  876. University C-Kermit) and invokes it to receive files. See
  877. the ECU documentation for modifications necessary to ckermit
  878. for ECU operation. The file ~/.kermrc must be set up to
  879. have any desired initialization parameters you desire.
  880. Refer to C-Kermit documentation for more information.
  881. REDial : redial last number
  882. Usage: redial [<retry-count> [<pause-interval>]]
  883. This command redials a number previously dialed with the
  884. 'dial' command. Modem status is tested and multiple retries
  885. may be made. <retry-count> specifies how many retries are
  886. to be made. <pause-interval> specifies how many seconds the
  887. program pauses after a failure to connect. You must specify
  888. <retry-count> in order to specify <pause-interval>. The
  889. Version 4.07 10/18/96 22
  890. ECU(1) USER COMMANDS ECU(1)
  891. default value for <retry-count> is 10. The default <pause-
  892. interval> is 60.
  893. You should know that in some jurisdictions, it is ILLEGAL to
  894. dial the same telephone number more than a specified number
  895. of times during some interval of time. In any case, speci-
  896. fying <pause-interval> less than 15 seconds is silently
  897. changed to 15 seconds.
  898. REV : ECU revision/make date
  899. Usage: rev
  900. This command displays ECU's revision, the date and time ECU
  901. was made and the status of CFG configuration switches used
  902. to make ECU.
  903. RTScts : RTS/CTS flow control
  904. Usage: rtscts [ off | on | no | yes | 0..7 ]
  905. This command turns on or off the driver RTS and CTS flow
  906. control if support is provided by the OS. This is a complex
  907. subject and you should refer to the manual and the UNIX
  908. oral/net tradition if you are confused.
  909. For SCO:
  910. argument | RTSFLOW | CTSFLOW argument | RTSFLOW | CTSFLOW
  911. | CRTSFL
  912. ---------+---------+--------- ---------
  913. +---------+---------+--------
  914. off | 0 | 0 0 | 0 | 0
  915. |
  916. on | 0 | 1 1 | 0 | 1
  917. |
  918. no | 0 | 0 2 | 1 | 0
  919. |
  920. yes | 0 | 1 3 | 1 | 1
  921. |
  922. 4 | 0 | 0
  923. | 1 Choice 4 only works on SCO 3.2v4 and ODT 2.0. As you
  924. can see, numeric values are masks. If the 4 bit is present
  925. in the numeric value, it overrides the lower-order bits:
  926. Specifying 7 as an argument specifies CRTSFL is to be used
  927. if it is supported, otherwise RTSFLOW and CTSFLOW.
  928. A similar feature is provided under SVR4 and SunOS. See the
  929. ECU manual and your system's termio man page (termios for
  930. SunOS) for details.
  931. RX : receive via XMODEM/CRC
  932. Version 4.07 10/18/96 23
  933. ECU(1) USER COMMANDS ECU(1)
  934. Usage: rx
  935. This command invokes a modified version of Chuck Forsberg's
  936. rz program (version 1.31) to receive files from the remote
  937. system using XMODEM/CRC.
  938. After entering the command, you are prompted as to whether
  939. or not file CR/LF characters are to be converted to new-
  940. lines. If you are transferring text files from a system
  941. which contain CR/LF line terminators, you must answer yes to
  942. this question. You should answer no when transferring
  943. binary files, such as executables, .arc files and the like.
  944. File transfer progress is presented on a visual display. To
  945. abort the transfer, press your interrupt key (usually DEL
  946. unless reset with stty(C)).
  947. RY : receive via YMODEM Batch
  948. Usage: ry
  949. This command invokes a modified version of Chuck Forsberg's
  950. rz program (version 1.31) to receive files from the remote
  951. system using YMODEM batch with CRC-16 error correction. The
  952. YMODEM is "true YMODEM", not XMODEM-1k. File transfer pro-
  953. gress is presented on a visual display. To abort the
  954. transfer, press your interrupt key (usually DEL unless reset
  955. with stty(C)).
  956. RZ : receive via ZMODEM/CRC32
  957. Usage: rz
  958. This command invokes a modified version of Chuck Forsberg's
  959. rz program (version 1.44) to receive files from the remote
  960. system using ZMODEM/CRC32. File transfer progress is
  961. presented on a visual display. To abort the transfer, press
  962. your interrupt key (usually DEL unless reset with stty(C)).
  963. SDName : select screen dump name
  964. Usage: sdname [<filename> | ]
  965. This command sets or displays the current screen dump
  966. filename. Until the command is issued, screen dump data is
  967. placed in ~/.ecu/screen.dump.
  968. SGR : send command/get response
  969. Usage: sgr mode cmd
  970. This experimental command is used to test the timed read
  971. primitive used by ECU. The command <cmd> is sent to the
  972. Version 4.07 10/18/96 24
  973. ECU(1) USER COMMANDS ECU(1)
  974. line and a timed read is performed. The data returned is
  975. displayed in hexadecimal format on the console. The
  976. stimulus (cmd) and response is logged in source module
  977. ecugrabbag.c function send_get_response() for details. See
  978. SGRTO1 and SGRTO2 for additional flexibility
  979. SGRTO1 : set SGr 1st char timeout
  980. Usage: sgrto1 <msec>
  981. Set time to wait for first character in response to an sgr
  982. stimulus.
  983. SGRTO2 : set SGr later char timeout
  984. Usage: sgrto2 <msec>
  985. Set time to wait for later characters in response to an sgr
  986. stimulus.
  987. SK : send via C-Kermit
  988. Usage: sk [<file-list>]
  989. This command searches the PATH list for 'ckermit' (Columbia
  990. University C-Kermit) and invokes it to send files. The file
  991. ~/.kermrc must be set up to have any desired initialization
  992. parameters you desire. Refer to the ECU manual and to C-
  993. Kermit documentation for more information.
  994. After entering the command, you are prompted as to whether
  995. or not file newline characters are to be converted to CR/LF.
  996. If you are transferring text files to a system which
  997. requires CR/LF line terminators, you must answer yes to this
  998. question. You should answer no when transferring binary
  999. files, such as executables, .arc files and the like. You
  1000. are prompted to enter a list of files to send, which may
  1001. contain one or more wildcard specifications.
  1002. STat : general status
  1003. Usage: stat
  1004. This command displays various status and statistics about
  1005. ECU usage. Its display varies from system to system and is
  1006. generally self-explanatory.
  1007. SX : send via XMODEM/CRC
  1008. Usage: sx [<file-name>]
  1009. Version 4.07 10/18/96 25
  1010. ECU(1) USER COMMANDS ECU(1)
  1011. This command invokes a modified version of Chuck Forsberg's
  1012. sz program (version 1.44) to send a file to the remote sys-
  1013. tem using XMODEM/CRC.
  1014. After entering the command, you are prompted as to whether
  1015. or not file CR/LF characters are to be converted to new-
  1016. lines. If you are transferring text files from a system
  1017. which contain CR/LF line termi- nators, you must answer yes
  1018. to this question. You should answer no when transferring
  1019. binary files, such as executables, .arc files and the like.
  1020. You are prompted to enter a filename to send. File transfer
  1021. progress is presented on a visual display. To abort the
  1022. transfer, press your interrupt key (usually DEL unless reset
  1023. with stty(C)).
  1024. SY : send via YMODEM Batch
  1025. Usage: sy [<file-list>]
  1026. This command invokes a modified version of Chuck Forsberg's
  1027. sz program (version 1.44) to send file(s) to the remote sys-
  1028. tem using YMODEM/CRC.
  1029. You are prompted to enter filename(s) to send, which may
  1030. consist of one or more wildcard specifications. File
  1031. transfer progress is presented on a visual display. To
  1032. abort the transfer, press your interrupt key (usually DEL
  1033. unless reset with stty(C)).
  1034. SZ : send via ZMODEM/CRC32
  1035. Usage: sz [<file-list>]
  1036. This command invokes a modified version of Chuck Forsberg's
  1037. sz program (version 1.44) to send file(s) to the remote sys-
  1038. tem using ZMODEM/CRC32.
  1039. You are prompted to enter filename(s) to send, which may
  1040. consist of one or more wildcard specifications. File
  1041. transfer progress is presented on a visual display. To
  1042. abort the transfer, press your interrupt key (usually DEL
  1043. unless reset with stty(C)).
  1044. Note: if you specify sending only newer files and the remote
  1045. receiver does not support the feature, it may skip (reject)
  1046. all your files. Retry the transfer specifying 'N' to
  1047. 'Transfer only newer files'.
  1048. TD : termcap variable display
  1049. Usage: td
  1050. Version 4.07 10/18/96 26
  1051. ECU(1) USER COMMANDS ECU(1)
  1052. Display the termcap strings that ECU received from termcap
  1053. initialization. Useful for debugging screen display prob-
  1054. lems.
  1055. TELopt : telnet options display state
  1056. Usage: telopt [ y | n | ]
  1057. If configured for it, ECU can make internet (telnet) connec-
  1058. tions. When in one, telnet options are exchanged between
  1059. ECU and the remote telnetd. This command controls or
  1060. displays whether or not ECU displays visible evidence of
  1061. such traffic. By default, this feature is turned off.
  1062. There is little traffic once the session begins. You most
  1063. likely wish to use the -z switch or use the procedure ver-
  1064. sion of this command in an _rc.ep file.
  1065. TIme : time of day
  1066. Usage: time
  1067. This command displays the local date and time as well as the
  1068. current UTC.
  1069. TS : termio display
  1070. Usage: ts
  1071. This experimental command displays raw termio structure
  1072. information for the console and the tty. It is primarily
  1073. used in debugging ECU.
  1074. TTy : console tty name
  1075. Usage: tty
  1076. This command displays the current console tty name.
  1077. XLog : protocol packet logging
  1078. Usage: xlog [y | n]
  1079. This experimental command controls exhaustive logging by the
  1080. X, Y, and ZMODEM file transfer protocols to files named
  1081. /tmp/szNNNNN.log or /tmp/rzNNNNN.log where NNNNN is the pro-
  1082. cess id of the transfer process.
  1083. XOn : line xon/xoff flow control
  1084. Usage: xon [<arg>]
  1085. where <arg> is on input and output flow control
  1086. Version 4.07 10/18/96 27
  1087. ECU(1) USER COMMANDS ECU(1)
  1088. off no flow control
  1089. in input flow control
  1090. out output flow control
  1091. This command enables or disables xon/xoff flow control. If
  1092. the argument is omitted, the current flow control state is
  1093. displayed.
  1094. ! : execute shell (tty)
  1095. Usage: !
  1096. !<command>
  1097. The '!' command is a shell escape. The environment variable
  1098. SHELL is read to determine what shell program to execute
  1099. (e.g., /bin/sh, etc). If '!' is entered by itself, an
  1100. interactive shell is started; press ^D to exit back to ECU.
  1101. If <command> is supplied, it is executed by the shell with
  1102. an immediate return to ECU.
  1103. Similarly,
  1104. '$' causes the communications line to be stdin and stdout
  1105. for the spawned shell
  1106. '-' is similar to '>', except the command is executed
  1107. directly
  1108. without going through a shell.
  1109. $ : execute shell (comm line)
  1110. Usage: $
  1111. $<command>
  1112. The '$' command is a shell escape causing the communications
  1113. line to be the standard input and output. The environment
  1114. variable SHELL is read to determine what shell program to
  1115. execute (e.g., /bin/sh, etc). If '$' is entered by itself,
  1116. an interactive shell is started; a ^D received from the com-
  1117. munications line causes the shell to terminate and control
  1118. to be passed back to ECU. If <command> is supplied, it is
  1119. executed by the shell with an immediate return to ECU.
  1120. - : execute program
  1121. Usage: -<command>
  1122. The '-' command causes <command> to be executed directly
  1123. without passing through a shell (no wildcard expansion or
  1124. other shell processing occurs). Standard input, output and
  1125. error all are opened to the console. In addition, all other
  1126. files (including the communications line) opened by ECU
  1127. remain open.
  1128. Version 4.07 10/18/96 28
  1129. ECU(1) USER COMMANDS ECU(1)
  1130. ? : get help
  1131. Usage: ?
  1132. This is an alias for the help command.
  1133. Version 4.07 10/18/96 29