ckubwr.txt 218 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735
  1. [1]The Columbia Crown The Kermit Project | Columbia University
  2. 612 West 115th Street, New York NY 10025 USA o [2]kermit@columbia.edu
  3. ...since 1981
  4. [3]Home [4]Kermit 95 [5]C-Kermit [6]Scripts [7]Current [8]New [9]FAQ
  5. [10]Support
  6. C-Kermit Unix Hints and Tips
  7. Frank da Cruz
  8. [11]The Kermit Project, [12]Columbia University
  9. As of: C-Kermit 9.0.302, 20 August 2011
  10. This page last updated: Sun Aug 21 12:08:52 2011 (New York USA Time)
  11. IF YOU ARE READING A PLAIN-TEXT version of this document, note it is
  12. a plain-text dump of a Web page. You can visit the original (and
  13. possibly more up-to-date) Web page here:
  14. [13]http://www.columbia.edu/kermit/ckubwr.html
  15. Since the material in this file has been accumulating since 1985,
  16. some (much) of it might be dated.
  17. Known problems with C-Kermit 9.0
  18. * Domain name resolution does not work in Solaris 10 or 11 (fixed in
  19. [14]9.0.301).
  20. * UUCP lockfile failure in FreeBSD 8 (fixed in [15]9.0.302).
  21. * Build failure FreeBSD 9 (fixed in [16]9.0.302).
  22. * Opening new SSH sessions after closing previous ones sometimes
  23. fails.
  24. * Heimdal Kerberos not supported.
  25. [ [17]C-Kermit ] [ [18]Installation Instructions ] [ [19]TUTORIAL ]
  26. CONTENTS
  27. 1. [20]INTRODUCTION
  28. 2. [21]PREBUILT C-KERMIT BINARIES
  29. 3. [22]PLATFORM-SPECIFIC NOTES
  30. 4. [23]GENERAL UNIX-SPECIFIC LIMITATIONS AND BUGS
  31. 5. [24]INITIALIZATION AND COMMAND FILES
  32. 6. [25]COMMUNICATION SPEED SELECTION
  33. 7. [26]COMMUNICATIONS AND DIALING
  34. 8. [27]HARDWARE FLOW CONTROL
  35. 9. [28]TERMINAL CONNECTION AND KEY MAPPING
  36. 10. [29]FILE TRANSFER
  37. 11. [30]EXTERNAL FILE TRANSFER PROTOCOLS
  38. 12. [31]SECURITY
  39. 13. [32]MISCELLANEOUS USER REPORTS
  40. 14. [33]THIRD-PARTY DRIVERS
  41. Quick Links: [ [34]Linux ] [ [35]*BSD ] [[36]Mac OS X] [ [37]AIX ] [
  42. [38]HP-UX ] [ [39]Solaris ] [ [40]SCO ]
  43. 1. INTRODUCTION
  44. [ [41]Top ] [ [42]Contents ] [ [43]Next ]
  45. SECTION CONTENTS
  46. 1.1. [44]Documentation
  47. 1.2. [45]Technical Support
  48. 1.3. [46]The Year 2000
  49. 1.4. [47]The Euro
  50. THIS IS WHAT USED TO BE CALLED the "beware file" for the Unix version
  51. of C-Kermit, previously distributed as ckubwr.txt and, before that, as
  52. ckuker.bwr, after the fashion of old Digital Equipment Corporation
  53. (DEC) software releases that came with release notes (describing what
  54. had changed) and a "beware file" listing known bugs, limitations,
  55. "non-goals", and things to watch out for. The C-Kermit beware file has
  56. been accumulating since 1985, and it applies to many different hardware
  57. platforms and operating systems, and many versions of them, so it is
  58. quite large. Prior to C-Kermit 8.0, it was distributed only in
  59. plain-text format. Now it is available as a Web document with links,
  60. internal cross references, and so on, to make it easier to use.
  61. This document applies to Unix C-Kermit in general, as well as to
  62. specific Unix variations like [48]Linux, [49]AIX, [50]HP-UX,
  63. [51]Solaris, and so on, and should be read in conjunction with the
  64. [52]platform-independent C-Kermit beware file, which contains similar
  65. information, but applying to all versions of C-Kermit (VMS, Windows,
  66. OS/2, AOS/VS, VOS, etc, as well as to Unix).
  67. There is much in this document that is (only) of historical interest.
  68. The navigation links should help you skip directly to the sections that
  69. are relevant to you. Numerous offsite Web links are supposed to lead to
  70. further information but, as you know, Web links go stale frequently and
  71. without warning. If you can supply additional, corrected, updated, or
  72. better Web links, please feel free to [53]let me know.
  73. 1.1. Documentation
  74. [ [54]Top ] [ [55]Contents ] [ [56]Next ]
  75. C-Kermit 6.0 is documented in the book [57]Using C-Kermit, Second
  76. Edition, by Frank da Cruz and Christine M. Gianone, Digital Press,
  77. Burlington, MA, USA, ISBN 1-55558-164-1 (1997), 622 pages. This remains
  78. the definitive C-Kermit documentation. Until the third edition is
  79. published (sorry, there is no firm timeframe for this), please also
  80. refer to:
  81. [58]Supplement to Using C-Kermit, Second Edition, For C-Kermit 7.0
  82. Thorough documentation of features new to version 7.0.
  83. [59]Supplement to Using C-Kermit, Second Edition, For C-Kermit 8.0
  84. Thorough documentation of features new to version 8.0.
  85. [60]Supplement to Using C-Kermit, Second Edition, For C-Kermit 9.0
  86. Thorough documentation of features new to version 9.0.
  87. 1.2. Technical Support
  88. [ [61]Top ] [ [62]Contents ] [ [63]Section Contents ] [ [64]Next ] [
  89. [65]Previous ]
  90. For information on how to get technical support, please visit:
  91. [66]http://www.columbia.edu/kermit/support.html
  92. 1.3. The Year 2000
  93. [ [67]Top ] [ [68]Contents ] [ [69]Section Contents ] [ [70]Next ] [
  94. [71]Previous ]
  95. The Unix version of C-Kermit, release 6.0 and later, is "Year 2000
  96. compliant", but only if the underlying operating system is too. Contact
  97. your Unix operating system vendor to find out which operating system
  98. versions, patches, hardware, and/or updates are required. (Quite a few
  99. old Unixes are still in operation in the new millenium, but with their
  100. date set 28 years in the past so at least the non-year parts of the
  101. calendar are correct.)
  102. As of C-Kermit 6.0 (6 September 1996), post-millenium file dates are
  103. recognized, transmitted, received, and reproduced correctly during the
  104. file transfer process in C-Kermit's File Attribute packets. If
  105. post-millenium dates are not processed correctly on the other end, file
  106. transfer still takes place, but the modification or creation date of
  107. the received file might be incorrect. The only exception would be if
  108. the "file collision update" feature is being used to prevent
  109. unnecessary transfer of files that have not changed since the last time
  110. a transfer took place; in this case, a file might be transferred
  111. unnecessarily, or it might not be transferred when it should have been.
  112. Correct operation of the update feature depends on both Kermit programs
  113. having the correct date and time.
  114. Of secondary importance are the time stamps in the transaction and/or
  115. debug logs, and the date-related script programming constructs, such as
  116. \v(date), \v(ndate), \v(day), \v(nday), and perhaps also the
  117. time-related ones, \v(time) and \v(ntime), insofar as they might be
  118. affected by the date. The \v(ndate) is a numeric-format date of the
  119. form yyyymmdd, suitable for both lexical and numeric comparison and
  120. sorting: e.g. 19970208 or 20011231. If the underlying operating system
  121. returns the correct date information, these variables will have the
  122. proper values. If not, then scripts that make decisions based on these
  123. variables might not operate correctly.
  124. Most date-related code is based upon the C Library asctime() string,
  125. which always has a four-digit year. In Unix, the one bit of code in
  126. C-Kermit that is an exception to this rule is several calls to
  127. localtime(), which returns a pointer to a tm struct, in which the year
  128. is presumed to be expressed as "years since 1900". The code depends on
  129. this assumption. Any platforms that violate it will need special
  130. coding. As of this writing, no such platforms are known.
  131. Command and script programming functions that deal with dates use
  132. C-Kermit specific code that always uses full years.
  133. 1.4. The Euro
  134. [ [72]Top ] [ [73]Contents ] [ [74]Section Contents ] [ [75]Previous ]
  135. C-Kermit 7.0 and later support Unicode (ISO 10646), ISO 8859-15 Latin
  136. Alphabet 9, PC Code Page 858, Windows Code Pages 1250 and 1251, and
  137. perhaps other character sets, that encode the Euro symbol, and can
  138. translate among them as long as no intermediate character-set is
  139. involved that does not include the Euro.
  140. 2. PREBUILT C-KERMIT BINARIES
  141. [ [76]Top ] [ [77]Contents ] [ [78]Next ] [ [79]Previous ]
  142. It is often dangerous to run a binary C-Kermit (or any other) program
  143. built on a different computer. Particularly if that computer had a
  144. different C compiler, libraries, operating system version, processor
  145. features, etc, and especially if the program was built with shared
  146. libraries, because as soon as you update the libraries on your system,
  147. they no longer match the ones referenced in the binary, and the binary
  148. might refuse to load when you run it, in which case you'll see error
  149. messages similar to:
  150. Could not load program kermit
  151. Member shr4.o not found or file not an archive
  152. Could not load library libcurses.a[shr4.o]
  153. Error was: No such file or directory
  154. (These samples are from AIX.) To avoid this problem, we try to build
  155. C-Kermit with statically linked libraries whenever we can, but this is
  156. increasingly impossible as shared libraries become the norm.
  157. It is often OK to run a binary built on an earlier OS version, but it
  158. is rarely possible (or safe) to run a binary built on a later one, for
  159. example to run a binary built under Solaris 8 on Solaris 2.6. Sometimes
  160. even the OS-or-library patch/ECO level makes a difference.
  161. A particularly insidious problem occurs when a binary was built on a
  162. version of the OS that has patches from the vendor (e.g. to libraries);
  163. in many cases you won't be able to run such a binary on an unpatched
  164. version of the same platform.
  165. When in doubt, build C-Kermit from the source code on the computer
  166. where it is to be run (if possible!). If not, ask us for a binary
  167. specific to your configuration. We might have one, and if we don't, we
  168. might be able to find somebody who will build one for you.
  169. 3. NOTES ON SPECIFIC UNIX VERSIONS
  170. [ [80]Top ] [ [81]Contents ] [ [82]Next ] [ [83]Previous ]
  171. SECTION CONTENTS
  172. 3.0. [84]C-KERMIT ON PC-BASED UNIXES
  173. 3.1. [85]C-KERMIT AND AIX
  174. 3.2. [86]C-KERMIT AND HP-UX
  175. 3.3. [87]C-KERMIT AND LINUX
  176. 3.4. [88]C-KERMIT AND NEXTSTEP
  177. 3.5. [89]C-KERMIT AND QNX
  178. 3.6. [90]C-KERMIT AND SCO
  179. 3.7. [91]C-KERMIT AND SOLARIS
  180. 3.8. [92]C-KERMIT AND SUNOS
  181. 3.9. [93]C-KERMIT AND ULTRIX
  182. 3.10. [94]C-KERMIT AND UNIXWARE
  183. 3.11. [95]C-KERMIT AND APOLLO SR10
  184. 3.12. [96]C-KERMIT AND TANDY XENIX 3.0
  185. 3.13. [97]C-KERMIT AND OSF/1 (DIGITAL UNIX) (TRU64 UNIX)
  186. 3.14. [98]C-KERMIT AND SGI IRIX
  187. 3.15. [99]C-KERMIT AND THE BEBOX
  188. 3.16. [100]C-KERMIT AND DG/UX
  189. 3.17. [101]C-KERMIT AND SEQUENT DYNIX
  190. 3.18. [102]C-KERMIT AND {FREE,OPEN,NET}BSD
  191. 3.19. [103]C-KERMIT AND MAC OS X
  192. 3.20. [104]C-KERMIT AND COHERENT
  193. The following sections apply to specific Unix versions. Most of them
  194. contain references to FAQs (Frequently Asked Questions), but these tend
  195. to be ephemeral. For possibly more current information see:
  196. [105]http://www.faqs.org
  197. [106]http://aplawrence.com/Unixart/newtounix.html
  198. One thread that runs through many of them, and implicitly perhaps
  199. through all, concerns the problems that occur when trying to dial out
  200. on a serial device that is (also) enabled for dialing in. The
  201. "solutions" to this problem are many, varied, diverse, and usually
  202. gross, involving configuring the device for bidirectional use. This is
  203. done in a highly OS-dependent and often obscure manner, and the effects
  204. (good or evil) are also highly dependent on the particular OS (and
  205. getty variety, etc). Many examples are given in the [107]OS-specific
  206. sections below.
  207. An important point to keep in mind is that C-Kermit is a
  208. cross-platform, portable software program. It was not designed
  209. specifically and only for your particular Unix version, or for that
  210. matter, for Unix in particular at all. It also runs on VMS, AOS/VS,
  211. VOS, and other non-Unix platforms. All the Unix versions of C-Kermit
  212. share common i/o modules, with compile-time #ifdef constructions used
  213. to account for the differences among the many Unix products and
  214. releases. If you think that C-Kermit is behaving badly or missing
  215. something on your particular Unix version, you might be right -- we
  216. can't claim to be expert in hundreds of different OS / version /
  217. hardware / library combinations. If you're a programmer, take a look at
  218. the source code and [108]send us your suggested fixes or changes. Or
  219. else just [109]send us a report about what seems to be wrong and we'll
  220. see what we can do.
  221. 3.0. C-KERMIT ON PC-BASED UNIXES
  222. [ [110]Top ] [ [111]Contents ] [ [112]Section Contents ] [ [113]Next ]
  223. Also see: [114]http://www.pcunix.com/.
  224. SECTION CONTENTS
  225. 3.0.1. [115]Interrupt Conflicts
  226. 3.0.2. [116]Windows-Specific Hardware
  227. 3.0.3. [117]Modems
  228. 3.0.4. [118]Character Sets
  229. 3.0.5. [119]Keyboard, Screen, and Mouse Access
  230. 3.0.6. [120]Laptops
  231. 3.0.1. Interrupt Conflicts
  232. [ [121]Top ] [ [122]Contents ] [ [123]Section Contents ] [ [124]Next ]
  233. PCs are not the best platform for real operating systems like Unix. The
  234. architecture suffers from numerous deficiencies, not the least of which
  235. is the stiflingly small number of hardware interrupts (either 7 or 15,
  236. many of which are preallocated). Thus adding devices, using multiple
  237. serial ports, etc, is always a challenge and often a nightmare. The
  238. free-for-all nature of the PC market and the lack of standards combined
  239. with the diversity of Unix OS versions make it difficult to find
  240. drivers for any particular device on any particular version of Unix.
  241. Of special interest to Kermit users is the fact that there is no
  242. standard provision in the PC architecture for more than 2 communication
  243. (serial) ports. COM3 and COM4 (or higher) will not work unless you (a)
  244. find out the hardware address and interrupt for each, (b) find out how
  245. to provide your Unix version with this information, and (c) actually
  246. set up the configuration in the Unix startup files (or whatever other
  247. method is used). Watch out for interrupt conflicts, especially when
  248. using a serial mouse, and don't expect to be able to use more than two
  249. serial ports.
  250. The techniques for resolving interrupt conflicts are different for each
  251. operating system (Linux, NetBSD, etc). In general, there is a
  252. configuration file somewhere that lists COM ports, something like this:
  253. com0 at isa? port 0x3f8 irq 4 # DOS COM1
  254. com1 at isa? port 0x2f8 irq 3 # DOS COM2
  255. The address and IRQ values in this file must agree with the values in
  256. the PC BIOS and with the ports themselves, and there must not be more
  257. than one device with the same interrupt. Unfortunately, due to the
  258. small number of available interrupts, installing new devices on a PC
  259. almost always creates a conflict. Here is a typical tale from a Linux
  260. user (Fred Smith) about installing a third serial port:
  261. ...problems can come from a number of causes. The one I fought with
  262. for some time, and finally conquered, was that my modem is on an
  263. add-in serial port, cua3/IRQ5. By default IRQ5 has a very low
  264. priority, and does not get enough service in times when the system
  265. is busy to prevent losing data. This in turn causes many resends.
  266. There are two 'fixes' that I know of, one is to relax hard disk
  267. interrupt hogging by using the correct parameter to hdparm, but I
  268. don't like that one because the hdparm man page indicates it is
  269. risky to use. The other one, the one I used, was to get 'irqtune'
  270. and use it to give IRQ5 the highest priority instead of nearly the
  271. lowest. Completely cured the problem.
  272. Here's another one from a newsgroup posting:
  273. After much hair pulling, I've discovered why my serial port won't
  274. work. Apparently my [PC] has three serial devices (two comm ports
  275. and an IR port), of which only two at a time can be active. I looked
  276. in the BIOS setup and noticed that the IR port was activated, but
  277. didn't realize at the time that this meant that COM2 was thereby
  278. de-activated. I turned off the IR port and now the serial port works
  279. as advertised.
  280. 3.0.2. Windows-Specific Hardware
  281. [ [125]Top ] [ [126]Contents ] [ [127]Section Contents ] [ [128]Next ]
  282. [ [129]Previous ]
  283. To complicate matters, the PC platform is becoming increasingly and
  284. inexorably Windows-oriented. More and more add-on devices are "Windows
  285. only" -- meaning they are incomplete and rely on proprietary
  286. Windows-based software drivers to do the jobs that you would expect the
  287. device itself to do. PCMCIA, PCI, or "Plug-n-Play" devices are rarely
  288. supported on PC-based Unix versions such as SCO; Winmodems,
  289. Winprinters, and the like are not supported on any Unix variety (with
  290. [130]a few exceptions). The self-proclaimed Microsoft PC 97 (or later)
  291. standard only makes matters worse since its only purpose to ensure that
  292. PCs are "optimized to run Windows 95 and Windows NT 4.0 and future
  293. versions of these operating systems".
  294. With the exception noted (the Lucent modem, perhaps a handful of others
  295. by the time you read this), drivers for "Win" devices are available
  296. only for Windows, since the Windows market dwarfs that of any
  297. particular Unix brand, and for that matter all Unixes (or for that
  298. matter, all non-Windows operating systems) combined. If your version of
  299. Unix (SCO, Linux, BSDI, FreeBSD, etc) does not support a particular
  300. device, then C-Kermit can't use it either. C-Kermit, like any Unix
  301. application, must access all devices through drivers and not directly
  302. because Unix is a real operating system.
  303. Don't waste time thinking that you, or anybody else, could write a
  304. Linux (or other Unix) driver for a Winmodem or other "Win" device.
  305. First of all, these devices generally require realtime control, but
  306. since Unix is a true multitasking operating system, realtime device
  307. control is not possible outside the kernel. Second, the specifications
  308. for these devices are secret and proprietary, and each one (and each
  309. version of each one) is potentially different. Third, a Winmodem driver
  310. would be enormously complex; it would take years to write and debug, by
  311. which time it would be obsolete.
  312. A more recent generation of PCs (circa 1999-2000) is marketed as
  313. "Legacy Free". One can only speculate what that could mean. Most likely
  314. it means it will ONLY run the very latest versions of Windows, and is
  315. made exclusively of Winmodems, Winprinters, Winmemory, and Win-CPU-fans
  316. (Legacy Free is a concept [131]pioneered by Microsoft).
  317. Before you buy a new PC or add-on equipment, especially serial ports,
  318. internal modems, or printers, make sure they are compatible with your
  319. version of Unix. This is becoming an ever-greater challenge; only a
  320. huge company like Microsoft can afford to be constantly cranking out
  321. and/or verifying drivers for the thousands of video boards, sound
  322. cards, network adapters, SCSI adapters, buses, etc, that spew forth in
  323. an uncontrolled manner from all corners of the world on a daily basis.
  324. With very few exceptions, makers of PCs assemble the various components
  325. and then verify them only with Windows, which they must do since they
  326. are, no doubt, preloading the PC with Windows. To find a modern PC that
  327. is capable of running a variety of non-Windows operating systems (e.g.
  328. Linux, SCO OpenServer, Unixware, and Solaris) is a formidable challenge
  329. requiring careful study of each vendor's "compatibility lists" and
  330. precise attention to exact component model numbers and revision levels.
  331. 3.0.3. Modems
  332. [ [132]Top ] [ [133]Contents ] [ [134]Section Contents ] [ [135]Next ]
  333. [ [136]Previous ]
  334. External modems are recommended:
  335. * They don't need any special drivers.
  336. * You can use the lights and speaker to troubleshoot dialing.
  337. * You can share them among all types of computers.
  338. * You can easily turn them off and on when power-cycling seems
  339. warranted.
  340. * They are more likely to have manuals.
  341. Internal PC modems (even when they are not Winmodems, which is
  342. increasingly unlikely in new PCs) are always trouble, especially in
  343. Unix. Even when they work for dialing out, they might not work for
  344. dialing in, etc. Problems that occur when using an internal modem can
  345. almost always be eliminated by switching to an external one. Even when
  346. an internal modem is not a Winmodem or Plug-n-Play, it is often a
  347. no-name model of unknown quality -- not the sort of thing you want
  348. sitting directly on your computer's bus. (Even if it does not cause
  349. hardware problems, it probably came without a command list, so no Unix
  350. software will know how to control it.) For more about Unix compatible
  351. modems, see:
  352. [137]http://www.idir.net/~gromitkc/winmodem.html
  353. Remember that PCs, even now -- more than two decades after they were
  354. first introduced -- are not (in general) capable of supporting more
  355. than 2 serial devices. Here's a short success story from a recent
  356. newsgroup posting: "I have a Diamond SupraSonic II dual modem in my
  357. machine. What I had to end up doing is buying a PS/2 mouse and port and
  358. install it. Had to get rid of my serial mouse. I also had to disable
  359. PnP in my computer bios. I was having IRQ conflicts between my serial
  360. mouse and 'com 3'. Both modems work fine for me. My first modem is
  361. ttyS0 and my second is ttyS1." Special third-party multiport boards
  362. such as [138]DigiBoard are available for certain Unix platforms
  363. (typically SCO, maybe Linux) that come with special platform-specific
  364. drivers.
  365. 3.0.4. Character Sets
  366. [ [139]Top ] [ [140]Contents ] [ [141]Section Contents ] [ [142]Next ]
  367. [ [143]Previous ]
  368. PCs generally have PC code pages such as CP437 or CP850, and these are
  369. often used by PC-based Unix operating systems, particularly on the
  370. console. These are supported directly by C-Kermit's SET FILE
  371. CHARACTER-SET and SET TERMINAL CHARACTER-SET commands. Some PC-based
  372. Unix versions, such as recent Red Hat Linux releases, might also
  373. support Microsoft Windows code pages such as CP1252, or even Latin
  374. Alphabet 1 itself (perhaps displayed with CP437 glyphs). (And work is
  375. in progress to support Unicode UTF8 in Linux.)
  376. Certain Windows code pages are not supported directly by C-Kermit, but
  377. since they are ISO Latin Alphabets with nonstandard "extensions" in the
  378. C1 control range, you can substitute the corresponding Latin alphabet
  379. (or other character set) in any C-Kermit character-set related
  380. commands:
  381. Windows Code Page Substitution
  382. CP 1004 Latin-1
  383. CP 1051 HP Roman-8
  384. Other Windows code pages are mostly (or totally) incompatible with
  385. their Latin Alphabet counterparts (e.g. CP1250 and Latin-2), and
  386. several of these are already supported by C-Kermit 7.0 and later (1250,
  387. 1251, and 1252).
  388. 3.0.5. Keyboard, Screen, and Mouse Access
  389. [ [144]Top ] [ [145]Contents ] [ [146]Section Contents ] [ [147]Next ]
  390. [ [148]Previous ]
  391. Finally, note that as a real operating system, Unix (unlike Windows)
  392. does not provide the intimate connection to the PC keyboard, screen,
  393. and mouse that you might expect. Unix applications can not "see" the
  394. keyboard, and therefore can not be programmed to understand F-keys,
  395. Editing keys, Arrow keys, Alt-key combinations, and the like. This is
  396. because:
  397. a. Unix is a portable operating system, not only for PCs;
  398. b. Unix sessions can come from anywhere, not just the PC's own
  399. keyboard and screen; and:
  400. c. even though it might be possible for an application that actually
  401. is running on the PC's keyboard and screen to access these devices
  402. directly, there are no APIs (outside of X) for this.
  403. 3.0.6. Laptops
  404. [ [149]Top ] [ [150]Contents ] [ [151]Section Contents ] [
  405. [152]Previous ]
  406. (To be filled in . . .)
  407. 3.1. C-KERMIT AND AIX
  408. [ [153]Top ] [ [154]Contents ] [ [155]Section Contents ] [ [156]Next ]
  409. [ [157]Previous ]
  410. SECTION CONTENTS
  411. 3.1.1. [158]AIX: General
  412. 3.1.2. [159]AIX: Network Connections
  413. 3.1.3. [160]AIX: Serial Connections
  414. 3.1.4. [161]AIX: File Transfer
  415. 3.1.5. [162]AIX: Xterm Key Map
  416. For additional information see:
  417. * [163]http://www.emerson.emory.edu/services/aix-faq/
  418. * [164]http://www.faqs.org/faqs/by-newsgroup/comp/comp.unix.aix.html
  419. * [165]http://www.cis.ohio-state.edu/hypertext/faq/usenet/aix-faq/top
  420. .html
  421. * [166]http://aixpdslib.seas.ucla.edu/
  422. * [167]http://www.rootvg.net (AIX history)
  423. * [168]ftp://rtfm.mit.edu/pub/usenet/news.answers/aix-faq/part1
  424. * [169]ftp://mirrors.aol.com/pub/rtfm/usenet-by-hierarchy/comp/unix/a
  425. ix
  426. and/or read the [170]comp.unix.aix newsgroup.
  427. ________________________________________________________________________
  428. 3.1.1. AIX: General
  429. [ [171]Top ] [ [172]Contents ] [ [173]Section Contents ] [ [174]Next ]
  430. About AIX version numbers: "uname -a" tells the two-digit version
  431. number, such as 3.2 or 4.1. The three-digit form can be seen with the
  432. "oslevel" command (this information is unavailable at the API level and
  433. is reportedly obtained by scanning the installed patch list).
  434. Supposedly all three-digit versions within the same two-digit version
  435. (e.g. 4.3.1, 4.3.2) are binary compatible; i.e. a binary built on any
  436. one of them should run on all others, but who knows. Most AIX advocates
  437. tell you that any AIX binary will run on any AIX version greater than
  438. or equal to the one under which it was built, but experience with
  439. C-Kermit suggests otherwise. It is always best to run a binary built
  440. under your exact same AIX version, down to the third decimal place, if
  441. possible. Ideally, build it from source code yourself. Yes, this advice
  442. would be easier to follow if AIX came with a C compiler.
  443. ________________________________________________________________________
  444. 3.1.2. AIX: Network Connections
  445. [ [175]Top ] [ [176]Contents ] [ [177]Section Contents ] [ [178]Next ]
  446. [ [179]Previous ]
  447. File transfers into AIX 4.2 or 4.3 through the AIX Telnet or Rlogin
  448. server have been observed to fail (or accumulate huge numbers of
  449. correctable errors, or even disconnect the session), when exactly the
  450. same kind of transfers into AIX 4.1 work without incident, as do such
  451. transfers into all non-AIX platforms on the same kind of connections
  452. (with a few exceptions noted elsewhere in this document). AIX 4.3.3
  453. seems to be particularly fragile in this regard; the weakness seems to
  454. be in its pseudoterminal (pty) driver. High-speed streaming transfers
  455. work perfectly, however, if the AIX Telnet server and pty driver are
  456. removed from the picture; e.g, by using "set host * 3000" on AIX.
  457. The problem can be completely cured by replacing the IBM Telnet server
  458. with [180]MIT's Kerberos Telnet server -- even if you don't actually
  459. use the Kerberos part. Diagnosis: AIX pseudoterminals (which are
  460. controlled by the Telnet server to give you a login terminal for your
  461. session) have quirks that not even IBM knows about. The situation with
  462. AIX 5.x is not known, but if it has the same problem, the same cure is
  463. available.
  464. Meanwhile, the only remedy when going through the IBM Telnet server is
  465. to cut back on Kermit's performance settings until you find a
  466. combination that works:
  467. * SET STREAMING OFF
  468. * SET WINDOW-SIZE small-number
  469. * SET { SEND, RECEIVE } PACKET-LENGTH small-number
  470. * SET PREFIXING { CAUTIOUS, ALL }
  471. In some cases, severe cutbacks are required, e.g. those implied by the
  472. ROBUST command. Also be sure that the AIX C-Kermit on the remote end
  473. has "set flow none" (which is the default). NOTE: Maybe this one can
  474. also be addressed by starting AIX telnetd with the "-a" option. The
  475. situation with SSH connections is not known, but almost certainly the
  476. same.
  477. When these problems occur, the system error log contains:
  478. LABEL: TTY_TTYHOG
  479. IDENTIFIER: 0873CF9F
  480. Type: TEMP
  481. Resource Name: pts/1
  482. Description
  483. TTYHOG OVER-RUN
  484. Failure Causes
  485. EXCESSIVE LOAD ON PROCESSOR
  486. Recommended Actions
  487. REDUCE SYSTEM LOAD.
  488. REDUCE SERIAL PORT BAUD RATE
  489. Before leaving the topic of AIX pseudoterminals, it is very likely that
  490. Kermit's PTY and SSH commands do not work well either, for the same
  491. reason that Telnet connections into AIX don't work well. A brief test
  492. with "pty rlogin somehost" got a perfectly usable terminal (CONNECT)
  493. session, but file-transfer problems like those just described.
  494. Reportedly, telnet from AIX 4.1-point-something to non-Telnet ports
  495. does not work unless the port number is in the /etc/services file; it's
  496. not clear from the report whether this is a problem with AIX Telnet (in
  497. which case it would not affect Kermit), or with the sockets library (in
  498. which case it would). The purported fix is IBM APAR IX61523.
  499. C-Kermit SET HOST or TELNET from one AIX 3.1 (or earlier) system to
  500. another won't work right unless you set your local terminal type to
  501. something other than AIXTERM. When your terminal type is AIXTERM, AIX
  502. TELNET sends two escapes whenever you type one, and the AIX telnet
  503. server swallows one of them. This has something to do with the "hft"
  504. device. This behavior seems to be removed in AIX 3.2 and later.
  505. ________________________________________________________________________
  506. 3.1.3. AIX: Serial Connections
  507. [ [181]Top ] [ [182]Contents ] [ [183]Section Contents ] [ [184]Next ]
  508. [ [185]Previous ]
  509. In AIX 3, 4, or 5, C-Kermit won't be able to "set line /dev/tty0" (or
  510. any other dialout device) if you haven't installed "cu" or "uucp" on
  511. your system, because installing these is what creates the UUCP lockfile
  512. directory. If SET LINE commands always result in "Sorry, access to lock
  513. denied", even when C-Kermit has been given the same owner, group, and
  514. permissions as cu:
  515. -r-sr-xr-x 1 uucp uucp 67216 Jul 27 1999 cu
  516. and even when you run it as root, then you must go back and install
  517. "cu" from your AIX installation media.
  518. According to IBM's "From Strength to Strength" document (21 April
  519. 1998), in AIX 4.2 and later "Async supports speeds on native serial
  520. ports up to 115.2kbps". However, no API is documented to achieve serial
  521. speeds higher than 38400 bps. Apparently the way to do this -- which
  522. might or might not work only on the IBM 128-port multiplexer -- is:
  523. cxma-stty fastbaud /dev/tty0
  524. which, according to "man cxma-stty":
  525. fastbaud Alters the baud rate table, so 50 baud becomes 57600 baud.
  526. -fastbaud Restores the baud rate table, so 57600 baud becomes 50
  527. baud.
  528. Presumably (but not certainly) this extrapolates to 110 "baud" becomes
  529. 76800 bps, and 150 becomes 115200 bps. So to use high serial speeds in
  530. AIX 4.2 or 4.3, the trick would be to give the "cxma-stty fastbaud"
  531. command for the desired tty device before starting Kermit, and then use
  532. "set speed 50", "set speed 110", or "set speed 150" to select 56700,
  533. 76800, or 115200 bps. It is not known whether cxma-stty requires
  534. privilege.
  535. According to one report, "Further investigation with IBM seems to
  536. indicate that the only hardware capable of doing this is the 128-port
  537. multiplexor with one (or more) of the 16 port breakout cables (Enhanced
  538. Remote Async Node 16-Port EIA-232). We are looking at about CDN$4,000
  539. in hardware just to hang a 56kb modem on there. Of course, we can then
  540. hang 15 more, if we want. This hardware combo is described to be good
  541. to 230.4kbps."
  542. Another report says (quote from AIX newsgroup, March 1999):
  543. The machine type and the adapter determine the speed that one can
  544. actually run at. The older microchannel machines have much slower
  545. crystal frequencies and may not go beyond 76,800. A feature put into
  546. AIX 421 allows one to key in non-POSIX baud rates and if the uart
  547. can support that speed, it will get set. this applies also to 43p's
  548. and beyond. 115200 is the max for the 43P's native serial port. As
  549. crytal frequencies continue to increase, the built-in serial ports
  550. speeds will improve. To use 'uucp' or 'ate' at the higher baud
  551. rates, configure the port for the desired speed, but set the speed
  552. of uucp or ate to 50. Any non-POSIX speeds set in the ttys
  553. configuration will the be used. In the case of the 128-port adapters
  554. or the ISA 8-port or PCI 8-port adapter, there are only a few higher
  555. baud rates.
  556. a. Change the port to enable high baud rates:
  557. + B50 for 57600
  558. + B75 for 76800
  559. + B110 for 115200
  560. + B200 for 230000
  561. b. chdev -l ttyX -a fastbaud=enable
  562. + For the 128 ports original style rans, only 57600 bps is
  563. supported.
  564. + For the new enhanced RANs, up to 230Kbps is supported.
  565. In AIX 2.2.1 on the RT PC with the 8-port multiplexer, SET SPEED 38400
  566. gives 9600 bps, but SET SPEED 19200 gives 19200 (on the built-in S1
  567. port).
  568. Note that some RS/6000s (e.g. the IBM PowerServer 320) have nonstandard
  569. rectangular 10-pin serial ports; the DB-25 connector is NOT a serial
  570. port; it is a parallel printer port. IBM cables are required for the
  571. serial ports, (The IBM RT PC also had rectangular serial ports --
  572. perhaps the same as these, perhaps different.)
  573. If you dial in to AIX through a modem that is connected directly to an
  574. AIX port (e.g. on the 128-port multiplexer) and find that data is lost,
  575. especially when uploading files to the AIX system (and system error
  576. logs report buffer overruns on the port):
  577. 1. Make sure the port and modem are BOTH configured for hardware
  578. (RTS/CTS) flow control. The port is configured somewhere in the
  579. system configuration, outside of Kermit.
  580. 2. Tell C-Kermit to "set flow keep"; experimentation shows that SET
  581. FLOW RTS/CTS has no effect when used in remote mode (i.e. on
  582. /dev/tty, as opposed to a specify port device).
  583. 3. Fixes for bugs in the original AIX 4.2 tty (serial i/o) support and
  584. other AIX bugs are available from IBM at:
  585. [186]http://service.software.ibm.com/rs6000/
  586. Downloads -> Software Fixes -> Download FixDist gets an application
  587. for looking up known problems.
  588. Many problems reported with bidirectional terminal lines on AIX 3.2.x
  589. on the RS/6000. Workaround: don't use bidirectional terminal lines, or
  590. write a shell-script wrapper for Kermit that turns getty off on the
  591. line before starting Kermit, or before Kermit attempts to do the SET
  592. LINE. (But note: These problems MIGHT be fixed in C-Kermit 6.0 and
  593. later.) The commands for turning getty off and on (respectively) are
  594. /usr/sbin/pdisable and /usr/sbin/penable.
  595. ________________________________________________________________________
  596. 3.1.4. AIX: File Transfer
  597. [ [187]Top ] [ [188]Contents ] [ [189]Section Contents ] [ [190]Next ]
  598. [ [191]Previous ]
  599. Evidently AIX 4.3 (I don't know about earlier versions) does not allow
  600. open files to be overwritten. This can cause Kermit transfers to fail
  601. when FILE COLLISION is OVERWRITE, where they might work on other Unix
  602. varieties or earlier AIX versions.
  603. Transfer of binary -- and maybe even text -- files can fail in AIX if
  604. the AIX terminal has particular port can have character-set translation
  605. done for it by the tty driver. The following advice from a
  606. knowledgeable AIX user:
  607. [This feature] has to be checked (and set/cleared) with a separate
  608. command, unfortunately stty doesn't handle this. To check:
  609. $ setmaps
  610. input map: none installed
  611. output map: none installed
  612. If it says anything other than "none installed" for either one, it
  613. is likely to cause a problem with kermit. To get rid of installed
  614. maps:
  615. $ setmaps -t NOMAP
  616. However, I seem to recall that with some versions of AIX before
  617. 3.2.5, only root could change the setting. I'm not sure what
  618. versions - it might have only been under AIX 3.1 that this was true.
  619. At least with AIX 3.2.5 an ordinary user can set or clear the maps.
  620. On the same problem, another knowledgeable AIX user says:
  621. The way to get information on the NLS mapping under AIX (3.2.5
  622. anyway) is as follows. From the command line type:
  623. lsattr -l tty# -a imap -a omap -E -H
  624. Replace the tty number for the number sign above. This will give a
  625. human readable output of the settings that looks like this;
  626. # lsattr -l tty2 -a imap -a omap -E -H
  627. attribute value description user_settable
  628. imap none INPUT map file True
  629. omap none OUTPUT map file True
  630. If you change the -H to a -O, you get output that can easily be
  631. processed by another program or a shell script, for example:
  632. # lsattr -l tty2 -a imap -a omap -E -O
  633. #imap:omap
  634. none:none
  635. To change the settings from the command line, the chdev command is
  636. used with the following syntax.
  637. chdev -l tty# -a imap='none' -a omap='none'
  638. Again substituting the appropriate tty port number for the number
  639. sign, "none" being the value we want for C-Kermit. Of course, the
  640. above can also be changed by using the SMIT utility and selecting
  641. devices - tty. (...end quote)
  642. In 2007 I noticed the following on high-speed SSH connections (local
  643. network) into AIX 5.3: streaming transfers into AIX just don't work.
  644. The same might be true for Telnet connections; I have no way to check.
  645. It appears that the AIX pty driver and/or the SSH (and possibly Telnet)
  646. server are not capable of receiving a steady stream of incoming data at
  647. high speed. Solution: unknown. Workaround: put "set streaming off" in
  648. your .kermrc or .mykermrc file, since streaming is the default for
  649. network connections.
  650. ________________________________________________________________________
  651. 3.1.5. AIX: Xterm Key Map
  652. [ [192]Top ] [ [193]Contents ] [ [194]Section Contents ] [
  653. [195]Previous ]
  654. Here is a sample configuration for setting up an xterm keyboard for
  655. VT220 or higher terminal emulation on AIX, courtesy of Bruce Momjian,
  656. Drexel Hill, PA. Xterm can be started like this:
  657. xterm $XTERMFLAGS +rw +sb +ls $@ -tm 'erase ^? intr ^c' -name vt220 \
  658. -title vt220 -tn xterm-220 "$@" &
  659. ---------------------------------------------------------------------------
  660. XTerm*VT100.Translations: #override \n\
  661. <Key>Home: string(0x1b) string("[3~") \n \
  662. <Key>End: string(0x1b) string("[4~") \n
  663. vt220*VT100.Translations: #override \n\
  664. Shift <Key>F1: string("[23~") \n \
  665. Shift <Key>F2: string("[24~") \n \
  666. Shift <Key>F3: string("[25~") \n \
  667. Shift <Key>F4: string("[26~") \n \
  668. Shift <Key>F5: string("[K~") \n \
  669. Shift <Key>F6: string("[31~") \n \
  670. Shift <Key>F7: string("[31~") \n \
  671. Shift <Key>F8: string("[32~") \n \
  672. Shift <Key>F9: string("[33~") \n \
  673. Shift <Key>F10: string("[34~") \n \
  674. Shift <Key>F11: string("[28~") \n \
  675. Shift <Key>F12: string("[29~") \n \
  676. <Key>Print: string(0x1b) string("[32~") \n\
  677. <Key>Cancel: string(0x1b) string("[33~") \n\
  678. <Key>Pause: string(0x1b) string("[34~") \n\
  679. <Key>Insert: string(0x1b) string("[2~") \n\
  680. <Key>Delete: string(0x1b) string("[3~") \n\
  681. <Key>Home: string(0x1b) string("[1~") \n\
  682. <Key>End: string(0x1b) string("[4~") \n\
  683. <Key>Prior: string(0x1b) string("[5~") \n\
  684. <Key>Next: string(0x1b) string("[6~") \n\
  685. <Key>BackSpace: string(0x7f) \n\
  686. <Key>Num_Lock: string(0x1b) string("OP") \n\
  687. <Key>KP_Divide: string(0x1b) string("Ol") \n\
  688. <Key>KP_Multiply: string(0x1b) string("Om") \n\
  689. <Key>KP_Subtract: string(0x1b) string("OS") \n\
  690. <Key>KP_Add: string(0x1b) string("OM") \n\
  691. <Key>KP_Enter: string(0x1b) string("OM") \n\
  692. <Key>KP_Decimal: string(0x1b) string("On") \n\
  693. <Key>KP_0: string(0x1b) string("Op") \n\
  694. <Key>KP_1: string(0x1b) string("Oq") \n\
  695. <Key>KP_2: string(0x1b) string("Or") \n\
  696. <Key>KP_3: string(0x1b) string("Os") \n\
  697. <Key>KP_4: string(0x1b) string("Ot") \n\
  698. <Key>KP_5: string(0x1b) string("Ou") \n\
  699. <Key>KP_6: string(0x1b) string("Ov") \n\
  700. <Key>KP_7: string(0x1b) string("Ow") \n\
  701. <Key>KP_8: string(0x1b) string("Ox") \n\
  702. <Key>KP_9: string(0x1b) string("Oy") \n
  703. ! <Key>Up: string(0x1b) string("[A") \n\
  704. ! <Key>Down: string(0x1b) string("[B") \n\
  705. ! <Key>Right: string(0x1b) string("[C") \n\
  706. ! <Key>Left: string(0x1b) string("[D") \n\
  707. *visualBell: true
  708. *saveLines: 1000
  709. *cursesemul: true
  710. *scrollKey: true
  711. *scrollBar: true
  712. 3.2. C-KERMIT AND HP-UX
  713. [ [196]Top ] [ [197]Contents ] [ [198]Section Contents ] [ [199]Next ]
  714. [ [200]Previous ]
  715. SECTION CONTENTS
  716. 3.2.0. [201]Common Problems
  717. 3.2.1. [202]Building C-Kermit on HP-UX
  718. 3.2.2. [203]File Transfer
  719. 3.2.3. [204]Dialing Out and UUCP Lockfiles in HP-UX
  720. 3.2.4. [205]Notes on Specific HP-UX Releases
  721. 3.2.5. [206]HP-UX and X.25
  722. REFERENCES
  723. For further information, read the [207]comp.sys.hp.hpux newsgroup.
  724. C-Kermit is included as part of the HP-UX operating system by contract
  725. between Hewlett Packard and Columbia University for HP-UX 10.00 and
  726. later. Each level of HP-UX includes a freshly built C-Kermit binary in
  727. /bin/kermit, which should work correctly. Binaries built for regular
  728. HP-UX may be used on Trusted HP-UX and vice-versa, except for use as
  729. IKSD because of the different authentication methods.
  730. Note that HP does not update C-Kermit versions for any but its most
  731. current HP-UX release. So, for example, HP-UX 10.20 has C-Kermit 6.0;
  732. 11.00 has C-Kermit 7.0, and 11.22 has 8.0. Of course, as with all
  733. software, older Kermit versions have bugs (such as buffer overflow
  734. vulnerabilities) that are fixed in later versions. From time to time,
  735. HP discovers one of these (long-ago fixed) bugs and issues a security
  736. alert for the older OS's, recommending some draconian measure to avoid
  737. the problem. The true fix in each situation is to install the current
  738. release of C-Kermit.
  739. 3.2.0. Common Problems
  740. [ [208]Top ] [ [209]Contents ] [ [210]Section Contents ] [ [211]Next ]
  741. Some HP workstations have a BREAK/RESET key. If you hit this key while
  742. C-Kermit is running, it might kill or suspend the C-Kermit process.
  743. C-Kermit arms itself against these signals, but evidently the
  744. BREAK/RESET key is -- at least in some circumstances, on certain HP-UX
  745. versions -- too powerful to be caught. (Some report that the first
  746. BREAK/RESET shows up as SIGINT and is caught by C-Kermit's former
  747. SIGINT handler even when SIGINT is currently set to SIG_IGN; the second
  748. kills Kermit; other reports suggest the first BREAK/RESET sends a
  749. SIGTSTP (suspend signal) to Kermit, which it catches and suspends
  750. itself. You can tell C-Kermit to ignore suspend signals with SET
  751. SUSPEND OFF. You can tell C-Kermit to ignore SIGINT with SET COMMAND
  752. INTERRUPTION OFF. It is not known whether these commands also grant
  753. immunity to the BREAK/RESET key (one report states that with SET
  754. SUSPEND OFF, the BREAK/RESET key is ignored the first four times, but
  755. kills Kermit the 5th time). In any case:
  756. 1. If this key is mapped to SIGINT or SIGTSTP, C-Kermit catches or
  757. ignores it, depending on which mode (CONNECT, command, etc) Kermit
  758. is in.
  759. 2. If it causes HP-UX to kill C-Kermit, there is nothing C-Kermit can
  760. do to prevent it.
  761. When HP-UX is on the remote end of the connection, it is essential that
  762. HP-UX C-Kermit be configured for Xon/Xoff flow control (this is the
  763. default, but in case you change it and then experience file-transfer
  764. failures, this is a likely reason).
  765. 3.2.1. Building C-Kermit on HP-UX
  766. [ [212]Top ] [ [213]Contents ] [ [214]Section Contents ] [ [215]Next ]
  767. [ [216]Previous ]
  768. This section applies mainly to old (pre-10.20) HP-UX version on old,
  769. slow, and/or memory-constrained hardware.
  770. During the C-Kermit 6.0 Beta cycle, something happened to ckcpro.w (or,
  771. more precisely, the ckcpro.c file that is generated from it) which
  772. causes HP optimizing compilers under HP-UX versions 7.0 and 8.0
  773. (apparently on all platforms) as well as under HP-UX 9.0 on Motorola
  774. platforms only, to blow up. In versions 7.0 and 8.0 the problem has
  775. spread to other modules.
  776. The symptoms vary from the system grinding to a halt, to the compiler
  777. crashing, to the compilation of the ckcpro.c module taking very long
  778. periods of time, like 9 hours. This problem is handled by compiling the
  779. modules that tickle it without optimization; the new C-Kermit makefile
  780. takes care of this, and shows how to do it in case the same thing
  781. begins happening with other modules.
  782. On HP-UX 9.0, a kernel parameter, maxdsiz (maximum process data segment
  783. size), seems to be important. On Motorola systems, it is 16MB by
  784. default, whereas on RISC systems the default is much bigger. Increasing
  785. maxdsiz to about 80MB seems to make the problem go away, but only if
  786. the system also has a lot of physical memory -- otherwise it swaps
  787. itself to death.
  788. The optimizing compiler might complain about "some optimizations
  789. skipped" on certain modules, due to lack of space available to the
  790. optimizer. You can increase the space (the incantation depends on the
  791. particular compiler version -- see the [217]makefile), but doing so
  792. tends to make the compilations take a much longer time. For example,
  793. the "hpux0100o+" makefile target adds the "+Onolimit" compiler flag,
  794. and about an hour to the compile time on an HP-9000/730. But it *does*
  795. produce an executable that is about 10K smaller :-)
  796. In the makefile, all HP-UX entries automatically skip optimization of
  797. problematic modules.
  798. 3.2.2. File Transfer
  799. [ [218]Top ] [ [219]Contents ] [ [220]Section Contents ] [ [221]Next ]
  800. [ [222]Previous ]
  801. Telnet connections into HP-UX versions up to and including 11.11 (and
  802. possibly 11.20) tend not to lend themselves to file transfer due to
  803. limitations, restrictions, and/or bugs in the HP-UX Telnet server
  804. and/or pseudoterminal (pty) driver.
  805. In C-Kermit 6.0 (1996) an unexpected slowness was noted when
  806. transferring files over local Ethernet connections when an HP-UX system
  807. (9.05 or 10.00) was on the remote end. The following experiment was
  808. conducted to determine the cause. C-Kermit 6.0 was used; the situation
  809. is slightly better using C-Kermit 7.0's streaming feature and HP-UX
  810. 10.20 on the far end.
  811. The systems were HP-UX 10.00 (on 715/33) and SunOS 4.1.3 (on Sparc-20),
  812. both on the same local 10Mbps Ethernet, packet length 4096, parity
  813. none, control prefixing "cautious", using only local disks on each
  814. machine -- no NFS. In the C-Kermit 6.0 (ACK/NAK) case, the window size
  815. was 20; in the streaming case there is no window size (i.e. it is
  816. infinite). The test file was C-Kermit executable, transferred in binary
  817. mode. Conditions were relatively poor: the Sun and the local net
  818. heavily loaded; the HP system is old, slow, and memory-constrained.
  819. C-Kermit 6.0... C-Kermit 7.0...
  820. Local Remote ACK/NAK........ Streaming......
  821. Client Server Send Receive Send Receive
  822. Sun HP 36 18 64 18
  823. HP HP 25 15 37 16
  824. HP Sun 77 83 118 92
  825. Sun Sun 60 60 153 158
  826. So whenever HP is the remote we have poor performance. Why?
  827. * Changing file display to CRT has no effect (so it's not the curses
  828. library on the client side).
  829. * Changing TCP RECV-BUFFER or SEND-BUFFER has little effect.
  830. * Telling the client to make a binary-mode connection (SET TELNET
  831. BINARY REQUESTED, which successfully negotiates a binary
  832. connection) has no effect on throughput.
  833. BUT... If I start HP-UX C-Kermit as a TCP service:
  834. set host * 3000
  835. server
  836. and then from the client "set host xxx 3000", I get:
  837. C-Kermit 6.0... C-Kermit 7.0...
  838. Local Remote ACK/NAK........ Streaming......
  839. Client Server Send Receive Send Receive
  840. Sun HP 77 67 106 139
  841. HP HP 50 50 64 62
  842. HP Sun 57 85 155 105
  843. Sun Sun 57 50 321 314
  844. Therefore the HP-UX telnet server or pty driver seems to be adding more
  845. overhead than the SunOS one, and most others. When going through this
  846. type of connection (a remote telnet server) there is little Kermit can
  847. do improve matters, since the telnet server and pty driver are between
  848. the two Kermits, and neither Kermit program can have any influence over
  849. them (except putting the Telnet connection in binary mode, but that
  850. doesn't help).
  851. (The numbers for the HP-HP transfers are lower than the others since
  852. both Kermit processes are running on the same slow 33MHz CPU.)
  853. Matters seem to have deteriorated in HP-UX 11. Now file transfers over
  854. Telnet connections fail completely, rather than just being slow. In the
  855. following trial, a Telnet connection was made from Kermit 95 to HP-UX
  856. 11.11 on an HP-9000/785/B2000 over local 10Mbps Ethernet running
  857. C-Kermit 8.00 in server mode (under the HP-UX Telnet server):
  858. Text........ Binary......
  859. Stream Pktlen GET SEND GET SEND
  860. On 4000 Fail Fail Fail Fail
  861. Off 4000 Fail Fail Fail Fail
  862. Off 2000 OK Fail OK Fail
  863. On 2000 OK Fail OK Fail
  864. On 3000 Fail Fail Fail Fail
  865. On 2500 Fail Fail Fail Fail
  866. On 2047 OK Fail OK Fail
  867. On 2045 OK Fail OK Fail
  868. Off 500 OK OK OK OK
  869. On 500 OK Fail OK Fail
  870. On 240 OK Fail OK Fail
  871. As you can see, downloads are problematic unless the receiver's Kermit
  872. packet length is 2045 or less, but uploads work only with streaming
  873. disabled and the packet length restricted to 500. To force file
  874. transfers to work on this connection, the desktop Kermit must be told
  875. to:
  876. set streaming off
  877. set receive packet-length 2000
  878. set send packet-length 500
  879. However, if a connection is made between the same two programs on the
  880. same two computers over the same network, but this time a direct
  881. socket-to-socket connection bypassing the HP-UX Telnet server and pty
  882. driver (tell HP-UX C-Kermit to "set host /server * 3000 /raw"; tell
  883. desktop client program to "set host blah 3000 /raw"), everything works
  884. perfectly with the default Kermit settings (streaming, 4K packets,
  885. liberal control-character unprefixing, 8-bit transparency, etc):
  886. Text........ Binary......
  887. Stream Pktlen GET SEND GET SEND
  888. On 4000 OK OK OK OK
  889. And in this case, transfer rates were approximately 900,000 cps. To
  890. verify that the behavior reported here is not caused by the new Kermit
  891. release, the same experiment was performed on a Telnet connection from
  892. the same PC over the same network to the old 715/33 running HP-UX 10.20
  893. and C-Kermit 8.00. Text and binary uploads and downloads worked
  894. perfectly (albeit slowly) with all the default settings -- streaming,
  895. 4K packets, etc.
  896. 3.2.3. Dialing Out and UUCP Lockfiles in HP-UX
  897. [ [223]Top ] [ [224]Contents ] [ [225]Section Contents ] [ [226]Next ]
  898. [ [227]Previous ]
  899. HP workstations do not come with dialout devices configured; you have
  900. to do it yourself (as root). First look in /dev to see what's there;
  901. for example in HP-UX 10.00 or later:
  902. ls -l /dev/cua*
  903. ls -l /dev/tty*
  904. If you find a tty0p0 device but no cua0p0, you'll need to creat one if
  905. you want to dial out; the tty0p0 does not work for dialing out. It's
  906. easy: start SAM; in the main Sam window, double-click on Peripheral
  907. Device, then in the Peripheral Devices window, double-click on
  908. Terminals and Modems. In the Terminals and Modems dialog, click on
  909. Actions, then choose "Add modem" and fill in the blanks. For example:
  910. Port number 0, speed 57600 (higher speeds tend not to work reliably),
  911. "Use device for calling out", do NOT "Receive incoming calls" (unless
  912. you know what you are doing), leave "CCITT modem" unchecked unless you
  913. really have one, and do select "Use hardware flow control (RTS/CTS)".
  914. Then click OK. This creates cua0p0 as well as cul0p0 and ttyd0p0
  915. If the following sequence:
  916. set line /dev/cua0p0 ; or other device
  917. set speed 115200 ; or other normal speed
  918. produces the message "?Unsupported line speed". This means either that
  919. the port is not configured for dialout (go into SAM as described above
  920. and make sure "Use device for calling out" is selected), or else that
  921. speed you have given (such as 460800) is supported by the operating
  922. system but not by the physical device (in which case, use a lower speed
  923. like 57600).
  924. In HP-UX 9.0, serial device names began to change. The older names
  925. looked like "/dev/cua00", "/dev/tty01", etc (sometimes with only one
  926. digit). The newer names have two digits with the letter "p" in between.
  927. HP-UX 8.xx and earlier have the older form, HP-UX 10.00 and later have
  928. the newer form. HP-UX 9.xx has the newer form on Series 800 machines,
  929. and the older form on other hardware models. The situation is
  930. summarized in the following table (the Convio 10.0 column applies to
  931. HP-UX 10 and 11).
  932. Converged HP-UX Serial I/O Filenames : TTY Mux Naming
  933. ---------------------------------------------------------------------
  934. General meaning Old Form S800 9.0 Convio 10.0
  935. ---------------------------------------------------------------------
  936. tty* hardwired ports tty<YY> tty<X>p<Y> tty<D>p<p>
  937. diag:mux<X> diag:mux<D>
  938. ---------------------------------------------------------------------
  939. ttyd* dial-in modems ttyd<YY> ttyd<X>p<Y> ttyd<D>p<p>
  940. diag:ttyd<X>p<Y> diag:ttyd<D>p<p>
  941. ---------------------------------------------------------------------
  942. cua* auto-dial out cua<YY> cua<X>p<Y> cua<D>p<p>
  943. diag:cua<X>p<Y>
  944. ---------------------------------------------------------------------
  945. cul* dial-out cul<YY> cul<X>p<Y> cul<D>p<p>
  946. diag:cul<X>p<Y>
  947. ---------------------------------------------------------------------
  948. <X>= LU (Logical Unit) <D>= Devspec (decimal card instance)
  949. <Y> or <YY> = Port <p>= Port
  950. For dialing out, you should use the cua or cul devices. When C-Kermit's
  951. CARRIER setting is AUTO or ON, C-Kermit should pop back to its prompt
  952. automatically if the carrier signal drops, e.g. when you log out from
  953. the remote computer or service. If you use the tty<D>p<d> (e.g. tty0p0)
  954. device, the carrier signal should be ignored. The tty<D>p<d> device
  955. should be used for direct connections where the carrier signal does not
  956. follow RS-232 conventions (use the cul device for hardwired connections
  957. through a true null modem). Do not use the ttyd<D>p<d> device for
  958. dialing out.
  959. Kermit's access to serial devices is controlled by "UUCP lockfiles",
  960. which are intended to prevent different users using different software
  961. programs (Kermit, cu, etc, and UUCP itself) from accessing the same
  962. serial device at the same time. When a device is in use by a particular
  963. user, a file with a special name is created in:
  964. /var/spool/locks (HP-UX 10.00 and later)
  965. /usr/spool/uucp (HP-UX 9.xx and earlier)
  966. The file's name indicates the device that is in use, and its contents
  967. indicates the process ID (pid) of the process that is using the device.
  968. Since serial devices and the locks directory are not both publicly
  969. readable and writable, Kermit and other communication software must be
  970. installed setuid to the owner (bin) of the serial device and setgid to
  971. the group (daemon) of the /var/spool/locks directory. Kermit's setuid
  972. and setgid privileges are enabled only when opening the device and
  973. accessing the lockfiles.
  974. Let's say "unit" means a string of decimal digits (the interface
  975. instance number) followed (in HP-UX 10.00 and later) by the letter "p"
  976. (lowercase), followed by another string of decimal digits (the port
  977. number on the interface), e.g.:
  978. "0p0", "0p1", "1p0", etc (HP-UX 10.00 and later)
  979. "0p0", "0p1", "1p0", etc (HP-UX 9.xx on Series 800)
  980. "00", "01", "10", "0", etc (HP-UX 9.xx not on Series 800)
  981. "00", "01", "10", "0", etc (HP-UX 8.xx and earlier)
  982. Then a normal serial device (driver) name consists of a prefix ("tty",
  983. "ttyd", "cua", "cul", or possibly "cuad" or "culd") followed by a unit,
  984. e.g. "cua0p0". Kermit's treatment of UUCP lockfiles is as close as
  985. possible to that of the HP-UX "cu" program. Here is a table of the
  986. lockfiles that Kermit creates for unit 0p0:
  987. Selection Lockfile 1 Lockfile 2
  988. /dev/tty0p0 LCK..tty0p0 (none)
  989. * /dev/ttyd0p0 LCK..ttyd0p0 (none)
  990. /dev/cua0p0 LCK..cua0p0 LCK..ttyd0p0
  991. /dev/cul0p0 LCK..cul0p0 LCK..ttyd0p0
  992. /dev/cuad0p0 LCK..cuad0p0 LCK..ttyd0p0
  993. /dev/culd0p0 LCK..culd0p0 LCK..ttyd0p0
  994. <other> LCK..<other> (none)
  995. (* = Dialin device, should not be used.)
  996. In other words, if the device name begins with "cu", a second lockfile
  997. for the "ttyd" device, same unit, is created, which should prevent
  998. dialin access on that device.
  999. The <other> case allows for symbolic links, etc, but of course it is
  1000. not foolproof since we have no way of telling which device is really
  1001. being used.
  1002. When C-Kermit tries to open a dialout device whose name ends with a
  1003. "unit", it searches the lockfile directory for all possible names for
  1004. the same unit. For example, if user selects /dev/cul2p3, Kermit looks
  1005. for lockfiles named:
  1006. LCK..tty2p3
  1007. LCK..ttyd2p3
  1008. LCK..cua2p3
  1009. LCK..cul2p3
  1010. LCK..cuad2p3
  1011. LCK..culd2p3
  1012. If any of these files are found, Kermit opens them to find out the ID
  1013. (pid) of the process that created them; if the pid is still valid, the
  1014. process is still active, and so the SET LINE command fails and the user
  1015. is informed of the pid so s/he can use "ps" to find out who is using
  1016. the device.
  1017. If the pid is not valid, the file is deleted. If all such files (i.e.
  1018. with same "unit" designation) are successfully removed, then the SET
  1019. LINE command succeeds; up to six messages are printed telling the user
  1020. which "stale lockfiles" are being removed.
  1021. When the "set line" command succeeds in HP-UX 10.00 and later, C-Kermit
  1022. also creates a Unix System V R4 "advisory lock" as a further precaution
  1023. (but not guarantee) against any other process obtaining access to the
  1024. device while you are using it.
  1025. If the selected device was in use by "cu", Kermit can't open it,
  1026. because "cu" has changed its ownership, so we never get as far as
  1027. looking at the lockfiles. In the normal case, we can't even look at the
  1028. device to see who the owner is because it is visible only to its
  1029. (present) owner. In this case, Kermit says (for example):
  1030. /dev/cua0p0: Permission denied
  1031. When Kermit releases a device it has successfully opened, it removes
  1032. all the lockfiles that it created. This also happens whenever Kermit
  1033. exits "under its own power".
  1034. If Kermit is killed with a device open, the lockfile(s) are left
  1035. behind. The next Kermit program that tries to assign the device, under
  1036. any of its various names, will automatically clean up the stale
  1037. lockfiles because the pids they contain are invalid. The behavior of cu
  1038. and other communication programs under these conditions should be the
  1039. same.
  1040. Here, by the way, is a summary of the differences between the HP-UX
  1041. port driver types from John Pezzano of HP:
  1042. There are three types of device files for each port.
  1043. The ttydXXX device file is designed to work as follows:
  1044. 1. The process that opens it does NOT get control of the port until CD
  1045. is asserted. This was intentional (over 15 years ago) to allow
  1046. getty to open the port but not control it until someone called in.
  1047. If a process wants to use the direct or callout device files
  1048. (ttyXXX and culXXX respectively), they will then get control and
  1049. getty would be blocked. This eliminated the need to use uugetty
  1050. (and its inherent problems with lock files) for modems. You can see
  1051. this demonstrated by the fact that "ps -ef" shows a ? in the tty
  1052. column for the getty process as getty does not have the port yet.
  1053. 2. Once CD is asserted, the port is controlled by getty (or the
  1054. process handling an incoming call) if there was no process using
  1055. the port. The ? in the "ps" command now shows the port. At this
  1056. point, the port accepts data.
  1057. Therefore you should use either the callout culXXX device file
  1058. (immediate control but no data until CD is asserted) or the direct
  1059. device file ttyXXX which gives immediate control and immediate data
  1060. and which ignores by default modem control signals.
  1061. The ttydXXX device should be used only for callin and my
  1062. recommendation is to use it only for getty and uugetty.
  1063. 3.2.4 Notes on Specific HP-UX Releases
  1064. SECTION CONTENTS
  1065. 3.2.4.1. [228]HP-UX 11
  1066. 3.2.4.2. [229]HP-UX 10
  1067. 3.2.4.3. [230]HP-UX 9
  1068. 3.2.4.4. [231]HP-UX 8
  1069. 3.2.4.5. [232]HP-UX 7 and Earlier
  1070. 3.2.4.1. HP-UX 11
  1071. [ [233]Top ] [ [234]Contents ] [ [235]Section Contents ] [ [236]Next ]
  1072. As noted in [237]Section 3.2.2, the HP-UX 11 Telnet server and/or
  1073. pseudoterminal driver are a serious impediment to file transfer over
  1074. Telnet connections into HP-UX. If you have a Telnet connection into
  1075. HP-UX 11, tell your desktop Kermit program to:
  1076. set streaming off
  1077. set receive packet-length 2000
  1078. set send packet-length 500
  1079. File transfer speeds over connections from HP-UX 11 (dialed or Telnet)
  1080. are not impeded whatsoever, and can go at whatever speed is allowed by
  1081. the connection and the Kermit partner on the far end.
  1082. PA-RISC binaries for HP-UX 10.20 or later should run on any PA-RISC
  1083. system, S700 or S800, as long as the binary was not built under a later
  1084. HP-UX version than the host operating system. HP-UX 11.00 and 11.11 are
  1085. only for PA-RISC systems. HP-UX 11.20 is only for IA64 (subsequent
  1086. HP-UX releases will be for both PA-RISC and IA64). To check binary
  1087. compatibility, the following C-Kermit 8.0 binaries were run
  1088. successfully on an HP-9000/785 with HP-UX 11.11:
  1089. * Model 7xx HP-UX 10.20
  1090. * Model 8xx HP-UX 10.20
  1091. * Model 7xx HP-UX 11.00
  1092. * Model 8xx HP-UX 11.00
  1093. * Model 7xx HP-UX 11.11
  1094. * Model 8xx HP-UX 11.11
  1095. Binaries built under some of the earlier HP-UX releases, such as 9.05,
  1096. might also work, but only if built for the same hardware family (e.g.
  1097. s700).
  1098. 3.2.4.2. HP-UX 10
  1099. [ [238]Top ] [ [239]Contents ] [ [240]Section Contents ] [ [241]Next ]
  1100. [ [242]Previous ]
  1101. Beginning in HP-UX 10.10, libcurses is linked to libxcurses, the new
  1102. UNIX95 (X/Open) version of curses, which has some serious bugs; some
  1103. routines, when called, would hang and never return, some would dump
  1104. core. Evidently libxcurses contains a select() routine, and whenever
  1105. C-Kermit calls what it thinks is the regular (sockets) select(), it
  1106. gets the curses one, causing a segmentation fault. There is a patch for
  1107. this from HP, PHCO_8086, "s700_800 10.10 libcurses patch", "shared lib
  1108. curses program hangs on 10.10", "10.10 enhanced X/Open curses core
  1109. dumps due to using wrong select call", 96/08/02 (you can tell if the
  1110. patch is installed with "what /usr/lib/libxcurses.1"; the unpatched
  1111. version is 76.20, the patched one is 76.20.1.2). It has been verified
  1112. that C-Kermit works OK with the patched library, but results are not
  1113. definite for HP-UX 10.20 or higher.
  1114. To ensure that C-Kermit works even on non-patched HP-UX 10.10 systems,
  1115. separate makefile entries are provided for HP-UX 10.00/10.01, 10.10,
  1116. 10.20, etc, in which the entries for 10.10 and above link with
  1117. libHcurses, which is "HP curses", the one that was used in 10.00/10.01.
  1118. HP-UX 11.20 and later, however, link with libcurses, as libHcurses
  1119. disappeared in 11.20.
  1120. 3.2.4.3. HP-UX 9
  1121. [ [243]Top ] [ [244]Contents ] [ [245]Section Contents ] [ [246]Next ]
  1122. [ [247]Previous ]
  1123. HP-UX 9.00 and 9.01 need patch PHNE_10572 (note: this replaces
  1124. PHNE_3641) for hptt0.o, asio0.o, and ttycomn.o in libhp-ux.a. Contact
  1125. Hewlett Packard if you need this patch. Without it, the dialout device
  1126. (tty) will be hung after first use; subsequent attempts to use will
  1127. return an error like "device busy". (There are also equivalent patches
  1128. for s700 9.03 9.05 9.07 (PHNE_10573) and s800 9.00 9.04 (PHNE_10416).
  1129. When C-Kermit is in server mode, it might have trouble executing REMOTE
  1130. HOST commands. This problem happens under HP-UX 9.00 (Motorola) and
  1131. HP-UX 9.01 (RISC) IF the C-Shell is the login shell AND with the
  1132. C-Shell Revision 70.15. Best thing is to install HP's Patch PHCO_4919
  1133. for Series 300/400 and PHCO_5015 for the Series 700/800. PHCO_5015 is
  1134. called "s700_800 9.X cumulative csh(1) patch with memory leak fix"
  1135. which works for HP-UX 9.00, 9.01, 9.03, 9.04, 9.05 and 9.07. At least
  1136. you need C-Shell Revision 72.12!
  1137. C-Kermit works fine -- including its curses-based file-transfer display
  1138. -- on the console terminal, in a remote session (e.g. when logged in to
  1139. the HP 9000 on a terminal port or when telnetted or rlogin'd), and in
  1140. an HP-VUE hpterm window or an xterm window.
  1141. 3.2.4.4. HP-UX 8
  1142. [ [248]Top ] [ [249]Contents ] [ [250]Section Contents ] [ [251]Next ]
  1143. [ [252]Previous ]
  1144. To make C-Kermit work on HP-UX 8.05 on a model 720, obtain and install
  1145. HP-UX patch PHNE_0899. This patch deals with a lot of driver issues,
  1146. particularly related to communication at higher speeds.
  1147. One user reports:
  1148. On HP-UX 8 DON'T install 'tty patch' PHKL_4656, install PHKL_3047
  1149. instead! Yesterday I tried this latest tty patch PHKL_4656 and had
  1150. terrible problems. This patch should fix RTS/CTS problems. With text
  1151. transfer all looks nice. But when I switched over to binary files
  1152. the serial interface returned only rubish to C-Kermit. All sorts of
  1153. protocol, CRC and packed errors I had. After several tests and after
  1154. uninstalling that patch, all transfers worked fine. MB's of data
  1155. without any errors. So keep your fingers away from that patch. If
  1156. anybody needs the PHKL_3047 patch I have it here. It is no longer
  1157. available from HP's patch base.
  1158. 3.2.4.5. HP-UX 7 and Earlier
  1159. [ [253]Top ] [ [254]Contents ] [ [255]Section Contents ] [
  1160. [256]Previous ]
  1161. When transferring files into HP-UX 5 or 6 over a Telnet connection, you
  1162. must not use streaming, and you must not use a packet length greater
  1163. than 512. However, you can use streaming and longer packets when
  1164. sending files from HP-UX on a Telnet connection. In C-Kermit 8.0, the
  1165. default receive packet length for HP-UX 5 and 6 was changed to 500 (but
  1166. you can still increase it with SET RECEIVE PACKET-LENGTH if you wish,
  1167. e.g. for non-Telnet connections). Disable streaming with SET STREAMING
  1168. OFF.
  1169. The HP-UX 5.00 version of C-Kermit does not include the fullscreen
  1170. file-transfer because of problems with the curses library.
  1171. If HP-UX 5.21 with Wollongong TCP/IP is on the remote end of a Telnet
  1172. connection, streaming transfers to HP-UX invariably fail. Workaround:
  1173. SET STREAMING OFF. Packets longer than about 1000 should not be used.
  1174. Transfers from these systems, however, can use streaming and/or longer
  1175. packets.
  1176. Reportedly, "[there is] a bug in C-Kermit using HP-UX version 5.21 on
  1177. the HP-9000 series 500 computers. It only occurs when the controlling
  1178. terminal is using an HP-27140 six-port modem mux. The problem is not
  1179. present if the controlling terminal is logged into an HP-27130
  1180. eight-port mux. The symptom is that just after dialing successfully and
  1181. connecting Kermit locks up and the port is unusable until both forks of
  1182. Kermit and the login shell are killed." (This report predates C-Kermit
  1183. 6.0 and might no longer apply.)
  1184. 3.2.5. HP-UX and X.25
  1185. [ [257]Top ] [ [258]Contents ] [ [259]Section Contents ] [
  1186. [260]Previous ]
  1187. Although C-Kermit presently does not include built-in support for HP-UX
  1188. X.25 (as it does for the Sun and IBM X.25 products), it can still be
  1189. used to make X.25 connections as follows: start Kermit and then telnet
  1190. to localhost. After logging back in, start padem as you would normally
  1191. do to connect over X.25. Padem acts as a pipe between Kermit and X.25.
  1192. In C-Kermit 7.0, you might also be able to avoid the "telnet localhost"
  1193. step by using:
  1194. C-Kermit> pty padem address
  1195. This works if padem uses standard i/o (who knows?).
  1196. 3.3. C-KERMIT AND LINUX
  1197. [ [261]Top ] [ [262]Contents ] [ [263]Section Contents ] [ [264]Next ]
  1198. [ [265]Previous ]
  1199. SECTION CONTENTS
  1200. 3.3.1. [266]Problems Building C-Kermit for Linux
  1201. 3.3.2. [267]Problems with Serial Devices in Linux
  1202. 3.3.3. [268]Terminal Emulation in Linux
  1203. 3.3.4. [269]Dates and Times
  1204. 3.3.5. [270]Startup Errors
  1205. 3.3.6. [271]The Fullscreen File Transfer Display
  1206. (August 2010) Reportedly C-Kermit packages for certain Linux
  1207. distributions such as Centos and Ubuntu have certain features
  1208. disabled, for example the SSH command, SET HOST PTY /SSH, and
  1209. perhaps anything else to do with SSH and/or pseudoterminals and who
  1210. knows what else. If you download the regular package ("tarball")
  1211. from the Kermit Project and build from it ("make linux"), everything
  1212. is fine.
  1213. C-Kermit in Ubuntu 10.04 and 9.10 was reported slow to start because
  1214. it was trying to resolve the IP address 255.255.255.255. Later, also
  1215. in recent Debian versions. The following is seen in the strace:
  1216. write(3, "RESOLVE-ADDRESS 255.255.255.255\n", 32)
  1217. This is not Kermit Project code. Turns out to be something in
  1218. glibc's resolver, and can be fixed by changing /etc/nsswitch.conf,
  1219. but it might break other software, such as [272]Avahi or anything
  1220. (such as Gnome, Java, or Cups) that depends on it. I'm not sure
  1221. where it happens; I don't think Kermit tries to get its IP address
  1222. at startup time, only when it's needed or asked for, e.g. when
  1223. making a connection or evaluating \v(ipaddress).
  1224. REFERENCES
  1225. For further information, read the [273]comp.os.linux.misc,
  1226. [274]comp.os.linux.answers, and other Linux-oriented newsgroups, and
  1227. see:
  1228. The Linux Document Project (LDP)
  1229. [275]http://www.tldp.org/
  1230. The Linux FAQ
  1231. [276]http://www.tldp.org/FAQ/Linux-FAQ.html
  1232. The Linux HOWTOs (especially the Serial HOWTO)
  1233. [277]http://www.tldp.org/HOWTO/Serial-HOWTO.html
  1234. [278]http://tldp.org/HOWTO/Modem-HOWTO.html
  1235. [279]ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO
  1236. [280]ftp://tsx-11.mit.edu/pub/linux/docs/HOWTO
  1237. [281]http://www.tldp.org/HOWTO/
  1238. [282]http://www.tldp.org/hmirrors.html
  1239. Linux Vendor Tech Support Pages:
  1240. [283]http://www.redhat.com/apps/support/
  1241. [284]http://www.debian.org/support
  1242. [285]http://www.slackware.com/support/
  1243. [286]http://www.caldera.com/support/
  1244. [287]SUSE Linux Support
  1245. [288]http://www.mandrake.com/support/
  1246. [289]http://www.turbolinux.com/support/
  1247. Linux Winmodem Support
  1248. [290]http://www.linmodems.org/
  1249. Also see general comments on PC-based Unixes in [291]Section 3.0.
  1250. What Linux version is it? -- "uname -a" supplies only kernel
  1251. information, but these days it's the distribution that matters: Red Hat
  1252. 7.3, Debian 2.2, Slackware 8.0, etc. Unfortunately there's no
  1253. consistent way to get the distribution version. Usually it's in a
  1254. distribution-specific file:
  1255. Red Hat: /etc/issue or /etc/redhat-release
  1256. Debian: /etc/debian_version
  1257. Slackware: /etc/slackware-version (at least in later versions)
  1258. Did you know: DECnet is available for Linux? See:
  1259. [292]http://linux.dreamtime.org/decnet/
  1260. (But there is no support for it in C-Kermit -- anybody interested in
  1261. adding it, please [293]let me know).
  1262. Before proceeding, let's handle the some of the most frequently asked
  1263. question in the Linux newsgroups:
  1264. 1. Neither C-Kermit nor any other Linux application can use Winmodems,
  1265. except in the [294]rare cases where Linux drivers have been written
  1266. for them. See [295]Section 3.0.2 for details.
  1267. 2. "Why does it take such a long time to make a telnet connection to
  1268. (or from) my Linux PC?" (this applies to C-Kermit and to regular
  1269. Telnet). Most telnet servers these days perform reverse DNS lookups
  1270. on the client (for security and/or logging reasons). If the Telnet
  1271. client's address cannot be found by the server's local DNS server,
  1272. the DNS request goes out to the Internet at large, and this can
  1273. take quite some time. The solution to this problem is to make sure
  1274. that both client and host are registered in DNS, and that the
  1275. registrations are exported. C-Kermit itself performs reverse DNS
  1276. lookups unless you tell it not to; this is to allow C-Kermit to let
  1277. you know which host it is actually connected to in case you have
  1278. made a connection to a host pool (multihomed host). You can disable
  1279. C-Kermit's reverse DNS lookup with SET TCP REVERSE-DNS-LOOKUP OFF.
  1280. 3. (Any question that has the word "Telnet" in it...) The knee-jerk
  1281. reaction is "don't use Telnet, use SSH!" There's nothing wrong with
  1282. Telnet. In fact it's far superior to SSH as a protocol in terms of
  1283. features and extensibility, not to mention platform neutrality. The
  1284. issue lurking behind the knee-jerk reaction is security. SSH is
  1285. thought to be secure, whereas Telnet is thought to be insecure.
  1286. This is true for clear-text Telnet (because passwords travel in the
  1287. clear across the network), but apparently few people realize that
  1288. [296]secure Telnet clients and servers have been available for
  1289. years, and these are more secure than SSH (for reasons explained
  1290. [297]HERE).
  1291. 4. (Any question that has the word "FTP" in it...) The knee-jerk
  1292. reaction being "Don't use FTP, use SCP!" (or SFTP). Same answer as
  1293. above, but moreso. SCP and SFTP are not only not platform neutral,
  1294. they're diversity-hostile. They transfer files only in binary mode,
  1295. which mangles text files across different platforms, to the same
  1296. degree the platform's text-file record format and character set
  1297. differ. An extreme example would be an Variable-Block format EBCDIC
  1298. text file on an IBM mainframe, binary transfer of which to Unix
  1299. would do you little good indeed. FTP was designed with diversity in
  1300. mind and secure versions are available.
  1301. 3.3.1. Problems Building C-Kermit for Linux
  1302. [ [298]Top ] [ [299]Contents ] [ [300]Section Contents ] [ [301]Next ]
  1303. Modern Linux distributions like Red Hat give you a choice at
  1304. installation whether to include "developer tools". Obviously, you can't
  1305. build C-Kermit or any other C program from source code if you have not
  1306. installed the developer tools. But to confuse matters, you might also
  1307. have to choose (separately) to install the "curses" or "ncurses"
  1308. terminal control library; thus it is possible to install the C compiler
  1309. and linker, but omit the (n)curses library and headers. If curses is
  1310. not installed, you will not be able to build a version of C-Kermit that
  1311. supports the fullscreen file-transfer display, in which case you'll
  1312. need to use the "linuxnc" makefile target (nc = No Curses) or else
  1313. install ncurses before building.
  1314. There are all sorts of confusing issues caused by the many and varied
  1315. Linux distributions. Some of the worst involve the curses library and
  1316. header files: where are they, what are they called, which ones are they
  1317. really? Other vexing questions involve libc5 vs libc6 vs glibc vs
  1318. glibc2 (C libraries), gcc vs egcs vs lcc (compilers), plus using or
  1319. avoiding features that were added in a certain version of Linux or a
  1320. library or a distribution, and are not available in others. As of
  1321. C-Kermit 8.0, these questions should be resolved by the "linux"
  1322. makefile target itself, which does a bit of looking around to see
  1323. what's what, and then sets the appropriate CFLAGS.
  1324. 3.3.2. Problems with Serial Devices in Linux
  1325. [ [302]Top ] [ [303]Contents ] [ [304]Section Contents ] [ [305]Next ]
  1326. [ [306]Previous ]
  1327. Also see: "man setserial", "man irqtune".
  1328. And: [307]Sections 3.0, [308]6, [309]7, and [310]8 of this document.
  1329. NOTE: Red Hat Linux 7.2 and later include a new API that allows
  1330. serial-port arbitration by non-setuid/gid programs. This API has not
  1331. yet been added to C-Kermit. If C-Kermit is to be used for dialing
  1332. out on Red Hat 7.2 or later, it must still be installed as described
  1333. in in Sections [311]10 and [312]11 of the [313]Installation
  1334. Instructions.
  1335. Don't expect it to be easy. Queries like the following are posted to
  1336. the Linux newsgroups almost daily:
  1337. Problem of a major kind with my Compaq Presario 1805 in the sense
  1338. that the pnpdump doesn't find the modem and the configuration tells
  1339. me that the modem is busy when I set everything by hand!
  1340. I have <some recent SuSE distribution>, kernel 2.0.35. Using the
  1341. Compaq tells me that the modem (which is internal) is on COM2, with
  1342. the usual IRQ and port numbers. Running various Windows diagnostics
  1343. show me AT-style commands exchanged so I have no reason to believe
  1344. that it is a Winmodem. Also, the diagnostics under Win98 tell me
  1345. that I am talking to an NS 16550AN.
  1346. [Editor's note: This does not necessarily mean it isn't a Winmodem.]
  1347. Under Linux, no joy trying to talk to the modem on /dev/cua1 whether
  1348. via minicom, kppp, or chat; kppp at least tells me that tcgetattr()
  1349. failed.
  1350. Usage of setserial:
  1351. setserial /dev/cua1 port 0x2F8 irq 3 autoconfig
  1352. setserial -g /dev/cua1
  1353. tells me that the uart is 'unknown'. I have tried setting the UART
  1354. manually via. setserial to 16550A, 16550, and the other one (8550?)
  1355. (I didn't try 16540). None of these manual settings resulted in any
  1356. success.
  1357. A look at past articles leads me to investigate PNP issues by
  1358. calling pnpdump but pnpdump returns "no boards found". I have looked
  1359. around on my BIOS (Phoenix) and there is not much evidence of it
  1360. being PNP aware. However for what it calls "Serial port A", it
  1361. offers a choice of Auto, Disabled or Manual settings (currently set
  1362. to Auto), but using the BIOS interface I tried to change to 'manual'
  1363. and saw the default settings offered to be were 0x3F8 and IRQ 4
  1364. (COM1). The BIOS menus did not give me any chance to configure COM2
  1365. or any "modem". I ended up not saving any BIOS changes in the course
  1366. of my investigations.
  1367. You can also find out a fair amount about your PC's hardware
  1368. configuration in the text files in /proc, e.g.:
  1369. -r--r--r-- 1 root 0 Sep 4 14:00 /proc/devices
  1370. -r--r--r-- 1 root 0 Sep 4 14:00 /proc/interrupts
  1371. -r--r--r-- 1 root 0 Sep 4 14:00 /proc/ioports
  1372. -r--r--r-- 1 root 0 Sep 4 14:00 /proc/pci
  1373. From the directory listing they look like empty files, but in fact they
  1374. are text files that you "cat":
  1375. $ cat /proc/pci
  1376. Bus 0, device 14, function 0:
  1377. Serial controller: US Robotics/3Com 56K FaxModem Model 5610 (rev 1).
  1378. IRQ 10.
  1379. I/O at 0x1050 [0x1057].
  1380. $ setserial -g /dev/ttyS4
  1381. /dev/ttyS4, UART: 16550A, Port: 0x1050, IRQ: 10
  1382. $ cat /proc/ioports
  1383. 1050-1057 : US Robotics/3Com 56K FaxModem Model 5610
  1384. 1050-1057 : serial(auto)
  1385. $ cat /proc/interrupts
  1386. CPU0
  1387. 0: 7037515 XT-PIC timer
  1388. 1: 2 XT-PIC keyboard
  1389. 2: 0 XT-PIC cascade
  1390. 4: 0 XT-PIC serial
  1391. 8: 1 XT-PIC rtc
  1392. 9: 209811 XT-PIC usb-uhci, eth0
  1393. 14: 282015 XT-PIC ide0
  1394. 15: 6 XT-PIC ide1
  1395. Watch out for PCI, PCMCIA and Plug-n-Play devices, Winmodems, and the
  1396. like (see cautions in [314]Section 3.0 Linux supports Plug-n-Play
  1397. devices to some degree via the isapnp and pnpdump programs; read the
  1398. man pages for them. (If you don't have them, look on your installation
  1399. CD for isapnptool or download it from sunsite or a sunsite mirror or
  1400. other politically correct location du jour).
  1401. PCI modems do not use standard COM port addresses. The I/O address and
  1402. IRQ are assigned by the BIOS. All you need to do to get one working,
  1403. find out the I/O address and interrupt number with (as root) "lspci -v
  1404. | more" and then give the resulting address and interrupt number to
  1405. setserial.
  1406. Even when you have a real serial port, always be wary of interrupt
  1407. conflicts and similar PC hardware configuration issues: a PC is not a
  1408. real computer like other Unix workstations -- it is generally pieced
  1409. together from whatever random components were the best bargain on the
  1410. commodity market the week it was built. Once it's assembled and boxed,
  1411. not even the manufacturer will remember what it's made of or how it was
  1412. put together because they've moved on to a new model. Their job is to
  1413. get it (barely) working with Windows; for Linux and other OS's you are
  1414. on your own.
  1415. "set line /dev/modem" or "set line /dev/ttyS2", etc, results in an
  1416. error, "/dev/modem is not a tty". Cause unknown, but obviously a driver
  1417. issue, not a Kermit one (Kermit uses "isatty()" to check that the
  1418. device is a tty, so it knows it will be able to issue all the
  1419. tty-related ioctl's on it, like setting the speed & flow control). Try
  1420. a different name (i.e. driver) for the same port, e.g. "set line
  1421. /dev/cua2" or whatever.
  1422. To find what serial ports were registered at the most recent system
  1423. boot, type (as root): "grep tty /var/log/dmesg".
  1424. "set modem type xxx" (where xxx is the name of a modem) followed by
  1425. "set line /dev/modem" or "set
  1426. line /dev/ttyS2", etc, hangs (but can be interrupted with Ctrl-C).
  1427. Experimentation shows that if the modem is configured to always assert
  1428. carrier (&C0) the same command does not hang. Again, a driver issue.
  1429. Use /dev/cua2 (or whatever) instead. (Or not -- hopefully none of these
  1430. symptoms occurs in C-Kermit 7.0 or later.)
  1431. "set line /dev/cua0" reports "Device is busy", but "set line
  1432. /dev/ttyS0" works OK.
  1433. In short: If the cua device doesn't work, try the corresponding ttyS
  1434. device. If the ttyS device doesn't work, try the corresponding cua
  1435. device -- but note that Linux developers do not recommend this, and are
  1436. phasing out the cua devices. From /usr/doc/faq/howto/Serial-HOWTO:
  1437. 12.4. What's The Real Difference Between the /dev/cuaN And /dev/ttySN
  1438. Devices?
  1439. The only difference is the way that the devices are opened. The
  1440. dialin devices /dev/ttySN are opened in blocking mode, until CD
  1441. is asserted (ie someone connects). So, when someone wants to use
  1442. the /dev/cuaN device, there is no conflict with a program
  1443. watching the /dev/ttySN device (unless someone is connected of
  1444. course). The multiple /dev entries, allow operation of the same
  1445. physical device with different operating characteristics. It
  1446. also allows standard getty programs to coexist with any other
  1447. serial program, without the getty being retrofitted with locking
  1448. of some sort. It's especially useful since standard Unix kernel
  1449. file locking, and UUCP locking are both advisory and not
  1450. mandatory.
  1451. It was discovered during development of C-Kermit 7.0 that rebuilding
  1452. C-Kermit with -DNOCOTFMC (No Close/Open To Force Mode Change) made the
  1453. aforementioned problem with /dev/ttyS0 go away. It is not yet clear,
  1454. however, what its affect might be on the /dev/cua* devices. As of 19
  1455. March 1998, this option has been added to the CFLAGS in the makefile
  1456. entries for Linux ("make linux").
  1457. Note that the cua device is now "deprecated", and new editions of Linux
  1458. will phase (have phased) it out in favor of the ttyS device. See (if
  1459. it's still there):
  1460. [315]http://linuxwww.db.erau.edu/mail_archives/linux-kernel/Mar_98/1441.html
  1461. (no, of course it isn't; you'll have to use your imagination). One user
  1462. reported that C-Kermit 7.0, when built with egcs 1.1.2 and run on Linux
  1463. 2.2.6 with glibc 2.1 (hardware unknown but probably a PC) dumps core
  1464. when given a "set line /dev/ttyS1" command. When rebuilt with gcc, it
  1465. works fine.
  1466. All versions of Linux seem to have the following deficiency: When a
  1467. modem call is hung up and CD drops, Kermit can no longer read the modem
  1468. signals; SHOW COMMUNICATIONS says "Modem signals not available". The
  1469. TIOCMGET ioctl() returns -1 with errno 5 ("I/O Error").
  1470. The Linux version of POSIX tcsendbreak(), which is used by C-Kermit to
  1471. send regular (275msec) and long (1.5sec) BREAK signals, appears to
  1472. ignore its argument (despite its description in the man page and info
  1473. topic), and always sends a regular 275msec BREAK. This has been
  1474. observed in Linux versions ranging from Debian 2.1 to Red Hat 7.1.
  1475. 3.3.3. Terminal Emulation in Linux
  1476. [ [316]Top ] [ [317]Contents ] [ [318]Section Contents ] [ [319]Next ]
  1477. [ [320]Previous ]
  1478. C-Kermit is not a terminal emulator. For a brief explanation of why
  1479. not, see [321]Section 3.0.5. For a fuller explanation, [322]ClICK HERE.
  1480. In Unix, terminal emulation is supplied by the Window in which you run
  1481. Kermit: the regular console screen, which provides Linux Console
  1482. "emulation" via the "console" termcap entry, or under X-Windows in an
  1483. xterm window, which gives VTxxx emulation. An xterm that includes color
  1484. ANSI and VT220 emulation is available with Xfree86:
  1485. [323]http://dickey.his.com/xterm/xterm.html
  1486. Before starting C-Kermit in an xterm window, you might need to tell the
  1487. xterm window's shell to "stty sane".
  1488. To set up your PC console keyboard to send VT220 key sequences when
  1489. using C-Kermit as your communications program in an X terminal window
  1490. (if it doesn't already), create a file somewhere (e.g. in /root/)
  1491. called .xmodmaprc, containing something like the following:
  1492. keycode 77 = KP_F1 ! Num Lock => DEC Gold (PF1)
  1493. keycode 112 = KP_F2 ! Keypad / => DEC PF1
  1494. keycode 63 = KP_F3 ! Keypad * => DEC PF3
  1495. keycode 82 = KP_F4 ! Keypad - => DEC PF4
  1496. keycode 111 = Help ! Print Screen => DEC Help
  1497. keycode 78 = F16 ! Scroll Lock => DEC Do
  1498. keycode 110 = F16 ! Pause => DEC Do
  1499. keycode 106 = Find ! Insert => DEC Find
  1500. keycode 97 = Insert ! Home => DEC Insert
  1501. keycode 99 = 0x1000ff00 ! Page Up => DEC Remove
  1502. keycode 107 = Select ! Delete => DEC Select
  1503. keycode 103 = Page_Up ! End => DEC Prev Screen
  1504. keycode 22 = Delete ! Backspace sends Delete (127)
  1505. Then put "xmodmap filename" in your .xinitrc file (in your login
  1506. directory), e.g.
  1507. xmodmap /root/.xmodmaprc
  1508. Of course you can move things around. Use the xev program to find out
  1509. key codes.
  1510. Console-mode keys are mapped separately using loadkeys, and different
  1511. keycodes are used. Find out what they are with showkey.
  1512. For a much more complete VT220/320 key mapping for [324]Xfree86 xterm,
  1513. [325]CLICK HERE.
  1514. 3.3.4. Dates and Times
  1515. [ [326]Top ] [ [327]Contents ] [ [328]Section Contents ] [ [329]Next ]
  1516. [ [330]Previous ]
  1517. If C-Kermit's date-time (e.g. as shown by its DATE command) differs
  1518. from the system's date and time:
  1519. a. Make sure the libc to which Kermit is linked is set to GMT or is
  1520. not set to any time zone. Watch out for mixed libc5/libc6 systems;
  1521. each must be set independently.
  1522. b. If you have changed your TZ environment variable, make sure it is
  1523. exported. This is normally done in /etc/profile or /etc/TZ.
  1524. 3.3.5. Startup Errors
  1525. [ [331]Top ] [ [332]Contents ] [ [333]Section Contents ] [ [334]Next ]
  1526. [ [335]Previous ]
  1527. C-Kermit should work on all versions of Linux current through March
  1528. 2003, provided it was built on the same version you have, with the same
  1529. libraries and header files (just get the source code and "make linux").
  1530. Binaries tend not to travel well from one Linux machine to another, due
  1531. to their many differences. There is no guarantee that a particular
  1532. C-Kermit binary will not stop working at a later date, since Linux
  1533. tends to change out from under its applications. If that happens,
  1534. rebuild C-Kermit from source. If something goes wrong with the build
  1535. process, look on the [336]C-Kermit website for a newer version. If you
  1536. have the latest version, then [337]report the problem to us.
  1537. Inability to transfer files in Red Hat 7.2: the typical symptom would
  1538. be if you start Kermit and tell it to RECEIVE, it fails right away with
  1539. "?/dev/tty: No such device or address" or "?Bad file descriptor". One
  1540. report says this is because of csh, and if you change your shell to
  1541. bash or other shell, it doesn't happen. Another report cite bugs in Red
  1542. Hat 7.2 Telnetd "very seldom (if ever) providing a controlling tty, and
  1543. lots of other people piled on saying they have the same problem.") A
  1544. third theory is that this happens only when Linux has been installed
  1545. without "virtual terminal support".
  1546. A search of RedHat's errata pages shows a bug advisory (RHBA-2001-153)
  1547. issued 13 November 2001, but updated 6 December, about this same
  1548. symptom (but with tcsh and login.) Seems that login was not always
  1549. assigning a controlling TTY for the session, which would make most use
  1550. of "/dev/tty" somewhat less than useful.
  1551. [338]http://www.redhat.com/support/errata/RHBA-2001-153.html
  1552. Quoting: "Due to terminal handling problems in /bin/login, tcsh would
  1553. not find the controlling terminal correctly, and a shell in single user
  1554. mode would exhibit strange terminal input characteristics. This update
  1555. fixes both of these problems."
  1556. Since the Red Hat 5.1 release (circa August 1998), there have been
  1557. numerous reports of prebuilt Linux executables, and particularly the
  1558. Kermit RPM for Red Hat Linux, not working; either it won't start at
  1559. all, or it gives error messages about "terminal type unknown" and
  1560. refuses to initialize its curses support. The following is from the
  1561. [339]Kermit newsgroup:
  1562. From: rchandra@hal9000.buf.servtech.com
  1563. Newsgroups: comp.protocols.kermit.misc
  1564. Subject: Red Hat Linux/Intel 5.1 and ncurses: suggestions
  1565. Date: 22 Aug 1998 15:54:46 GMT
  1566. Organization: Verio New York
  1567. Keywords: RedHat RPM 5.1
  1568. Several factors can influence whether "linux" is recognized as a
  1569. terminal type on many Linux systems.
  1570. 1. Your program, or the libraries it linked with (if statically
  1571. linked), or the libraries it dynamically links with at runtime, are
  1572. looking for an entry in /etc/termcap that isn't there. (not likely,
  1573. but possible... I believe but am not certain that this is a very
  1574. old practice in very old [n]curses library implementations to use a
  1575. single file for all terminal descriptions.)
  1576. 2. Your program, or the libraries...are looking for a terminfo file
  1577. that just plain isn't there. (also not so likely, since many people
  1578. in other recent message threads said that other programs work OK).
  1579. 3. Your program, or the libraries...are looking for a terminfo file
  1580. that is stored at a pathname that isn't expected by your program,
  1581. the libraries--and so on. I forgot if I read this in the errata Web
  1582. page or where exactly I discovered this (Netscape install? Acrobat
  1583. install?), but it may just be that one libc (let's say for sake of
  1584. argument, libc5, but I don't know this to be true) expects your
  1585. terminfo to be in /usr/share/terminfo, and the other (let's say
  1586. libc6/glibc) expects /usr/lib/terminfo. I remember that the
  1587. specific instructions in this bugfix/workaround were to do the
  1588. following or equivalent:
  1589. cd /usr/lib
  1590. ln -s ../share/terminfo ./terminfo
  1591. or:
  1592. ln -s /usr/share/terminfo /usr/lib/terminfo
  1593. So what this says is that the terminfo database/directory structure
  1594. can be accessed by either path. When something goes to reference
  1595. /usr/lib/terminfo, the symlink redirects it to essentially
  1596. /usr/share/terminfo, which is where it really resides on your
  1597. system. I personally prefer wherever possible to use relative
  1598. symlinks, because they still hold, more often than break, across
  1599. mount points, particularly NFS mounts, where the directory structure
  1600. may be different on the different systems.
  1601. Evidently the terminfo file moved between Red Hat 5.0 and 5.1, but Red
  1602. Hat did not include a link to let applications built prior to 5.1 find
  1603. it. Users reported that installing the link fixes the problem.
  1604. 3.3.6. The Fullscreen File Transfer Display
  1605. [ [340]Top ] [ [341]Contents ] [ [342]Section Contents ] [
  1606. [343]Previous ]
  1607. Starting with ncurses versions dated 1998-12-12 (about a year before
  1608. ncurses 5.0), ncurses sets the terminal for buffered i/o, but
  1609. unfortunately is not able to restore it upon exit from curses (via
  1610. endwin()). Thus after a file transfer that uses the fullscreen file
  1611. transfer display, the terminal no longer echos nor responds immediately
  1612. to Tab, ?, and other special command characters. The same thing happens
  1613. on other platforms that use ncurses, e.g. FreeBSD. Workarounds:
  1614. * Use SET XFER DISPLAY BRIEF, CRT, SERIAL, or NONE instead of
  1615. FULLSCREEN; or:
  1616. * Rebuild with KFLAGS=-DNONOSETBUF (C-Kermit 8.0)
  1617. In Red Hat 7.1, when using C-Kermit in a Gnome terminal window, it was
  1618. noticed that when the fullscreen file transfer display exits (via
  1619. endwin()), the previous (pre-file-transfer-display) screen is restored.
  1620. Thus you can't look at the completed display to see what happened. This
  1621. is a evidently a new feature of xterm. I can only speculate that
  1622. initscreen() and endwin() must send some kind of special escape
  1623. sequences that command xterm to save and restore the screen. To defeat
  1624. this effect, tell Linux you have a vt100 or other xterm-compatible
  1625. terminal that is not actually an xterm, or else tell Kermit to SET
  1626. TRANSFER DISPLAY to something besides FULLSCREEN.
  1627. 3.4. C-KERMIT AND NEXTSTEP
  1628. [ [344]Top ] [ [345]Contents ] [ [346]Section Contents ] [ [347]Next ]
  1629. [ [348]Previous ]
  1630. Run C-Kermit in a Terminal, Stuart, or xterm window, or when logged in
  1631. remotely through a serial port or TELNET connection. C-Kermit does not
  1632. work correctly when invoked directly from the NeXTSTEP File Viewer or
  1633. Dock. This is because the terminal-oriented gtty, stty, & ioctl calls
  1634. don't work on the little window that NeXTSTEP pops up for non-NeXTSTEP
  1635. applications like Kermit. CBREAK and No-ECHO settings do not take
  1636. effect in the command parser -- commands are parsed strictly line at a
  1637. time. "set line /dev/cua" works. During CONNECT mode, the console stays
  1638. in cooked mode, so characters are not transmitted until carriage return
  1639. or linefeed is typed, and you can't escape back. If you want to run
  1640. Kermit directly from the File Viewer, then launch it from a shell
  1641. script that puts it in the desired kind of window, something like this
  1642. (for "Terminal"):
  1643. Terminal -Lines 24 -Columns 80 -WinLocX 100 -WinLocY 100 $FONT $FONTSIZE \
  1644. -SourceDotLogin -Shell /usr/local/bin/kermit &
  1645. C-Kermit does not work correctly on a NeXT with NeXTSTEP 3.0 to which
  1646. you have established an rlogin connection, due to a bug in NeXTSTEP
  1647. 3.0, which has been reported to NeXT.
  1648. The SET CARRIER command has no effect on the NeXT -- this is a
  1649. limitation of the NeXTSTEP serial-port device drivers.
  1650. Hardware flow control on the NeXT is selected not by "set flow rts/cts"
  1651. in Kermit (since NeXTSTEP offers no API for this), but rather, by using
  1652. a specially-named driver for the serial device: /dev/cufa instead
  1653. /dev/cua; /dev/cufb instead of /dev/cub. This is available only on
  1654. 68040-based NeXT models (the situation for Intel NeXTSTEP
  1655. implementations is unknown).
  1656. NeXT-built 68030 and 68040 models have different kinds of serial
  1657. interfaces; the 68030 has a Macintosh-like RS-422 interface, which
  1658. lacks RTS and CTS signals; the 68040 has an RS-423 (RS-232 compatible)
  1659. interface, which supports the commonly-used modem signals. WARNING: the
  1660. connectors look exactly the same, but the pins are used in completely
  1661. DIFFERENT ways -- different cables are required for the two kinds of
  1662. interfaces.
  1663. IF YOU GET LOTS OF RETRANSMISSIONS during file transfer, even when
  1664. using a /dev/cuf* device and the modem is correctly configured for
  1665. RTS/CTS flow control, YOU PROBABLY HAVE THE WRONG KIND OF CABLE.
  1666. On the NeXT, Kermit reportedly (by TimeMon) causes the kernel to use a
  1667. lot of CPU time when using a "set line" connection. That's because
  1668. there is no DMA channel for the NeXT serial port, so the port must
  1669. interrupt the kernel for each character in or out.
  1670. One user reported trouble running C-Kermit on a NeXT from within NeXT's
  1671. Subprocess class under NeXTstep 3.0, and/or when rlogin'd from one NeXT
  1672. to another: Error opening /dev/tty:, congm: No such device or address.
  1673. Diagnosis: Bug in NeXTSTEP 3.0, cure unknown.
  1674. 3.5. C-KERMIT AND QNX
  1675. [ [349]Top ] [ [350]Contents ] [ [351]Section Contents ] [ [352]Next ]
  1676. [ [353]Previous ]
  1677. See also: The [354]comp.os.qnx newsgroup.
  1678. Support for QNX 4.x was added in C-Kermit 5A(190). This is a
  1679. full-function implementation, thoroughly tested on QNX 4.21 and later,
  1680. and verified to work in both 16-bit and 32-bit versions. The 16-bit
  1681. version was dropped in C-Kermit 7.0 since it can no longer be built
  1682. successfully (after stripping most most features, I succeeded in
  1683. getting it to compile and link without complaint, but the executable
  1684. just beeps when you run it); for 16-bit QNX 4.2x, use C-Kermit 6.0 or
  1685. earlier, or else [355]G-Kermit.
  1686. The 32-bit version (and the 16-bit version prior to C-Kermit 7.0)
  1687. supports most of C-Kermit's advanced features including TCP/IP, high
  1688. serial speeds, hardware flow-control, modem-signal awareness, curses
  1689. support, etc.
  1690. BUG: In C-Kermit 6.0 on QNX 4.22 and earlier, the fullscreen file
  1691. transfer display worked fine the first time, but was fractured on
  1692. subsequent file transfers. Cause and cure unknown. In C-Kermit 7.0 and
  1693. QNX 4.25, this no longer occurs. It is not known if it would occur in
  1694. C-Kermit 7.0 or later on earlier QNX versions.
  1695. Dialout devices are normally /dev/ser1, /dev/ser2, ..., and can be
  1696. opened explicitly with SET LINE. Reportedly, "/dev/ser" (no unit
  1697. number) opens the first available /dev/sern device.
  1698. Like all other Unix C-Kermit implementations, QNX C-Kermit does not
  1699. provide any kind of terminal emulation. Terminal specific functions are
  1700. provided by your terminal, terminal window (e.g. QNX Terminal or
  1701. xterm), or emulator.
  1702. QNX C-Kermit, as distributed, does not include support for UUCP
  1703. line-locking; the QNX makefile entries (qnx32 and qnx16) include the
  1704. -DNOUUCP switch. This is because QNX, as distributed, does not include
  1705. UUCP, and its own communications software (e.g. qterm) does not use
  1706. UUCP line locking. If you have a UUCP product installed on your QNX
  1707. system, remove the -DNOUUCP switch from the makefile entry and rebuild.
  1708. Then check to see that Kermit's UUCP lockfile conventions are the same
  1709. as those of your UUCP package; if not, read the [356]UUCP lockfile
  1710. section of the [357]Installation Instructions and make the necessary
  1711. changes to the makefile entry (e.g. add -DHDBUUCP).
  1712. QNX does, however, allow a program to get the device open count. This
  1713. can not be a reliable form of locking unless all applications do it, so
  1714. by default, Kermit uses this information only for printing a warning
  1715. message such as:
  1716. C-Kermit>set line /dev/ser1
  1717. WARNING - "/dev/ser1" looks busy...
  1718. However, if you want to use it as a lock, you can do so with:
  1719. SET QNX-PORT-LOCK { ON, OFF }
  1720. This is OFF by default; if you set in ON, C-Kermit will fail to open
  1721. any dialout device when its open count indicates that another process
  1722. has it open. SHOW COMM (in QNX only) displays the setting, and if you
  1723. have a port open, it also shows the open count.
  1724. As of C-Kermit 8.0, C-Kermit's "open-count" form of line locking works
  1725. only in QNX4, not in QNX6 (this might change in a future C-Kermit
  1726. release).
  1727. 3.6. C-KERMIT AND SCO
  1728. [ [358]Top ] [ [359]Contents ] [ [360]Section Contents ] [ [361]Next ]
  1729. [ [362]Previous ]
  1730. SECTION CONTENTS
  1731. 3.6.1. [363]SCO XENIX
  1732. 3.6.2. [364]SCO UNIX and OSR5
  1733. 3.6.3. [365]Unixware
  1734. 3.6.4. [366]Open UNIX 8
  1735. REFERENCES
  1736. * The comp.unix.sco.* newsgroups.
  1737. * [367]Section 3.10 below for Unixware.
  1738. * The following FAQs:
  1739. The comp.sco.misc FAQ:
  1740. [368]http://aplawrence.com/SCOFAQ/
  1741. Caldera (SCO) comp.unix.sco.programmer FAQ:
  1742. [369]http://www.zenez.com/cgi-bin/scoprogfaq/faq.pl
  1743. The UnixWare 7/OpenUNIX 8 FAQ:
  1744. [370]http://www.zenez.com/cgi-bin/scouw7faq/faq.pl
  1745. [371]http://zenez.pcunix.com/cgi-bin/scouw7faq/faq.pl
  1746. High Speed Modems for SCO Unix:
  1747. [372]http://pcunix.com/Unixart/modems.html
  1748. The UnixWare FAQ
  1749. [373]http://www.freebird.org/faq/
  1750. The UnixWare 1.x and 2.0 Programmer FAQ
  1751. [374]http://www.freebird.org/faq/developer.html
  1752. Caldera Support Knowledge Base
  1753. [375]http://support.caldera.com/caldera
  1754. [376]http://stage.caldera.com/ta/
  1755. Caldera (SCO) Technical Article Search Center
  1756. [377]http://aplawrence.com/newtosco.html
  1757. New to SCO (Tony Lawrence)
  1758. The same comments regarding terminal emulation and key mapping apply to
  1759. SCO operating systems as to all other Unixes. C-Kermit is not a
  1760. terminal emulator, and you can't use it to map F-keys, Arrow keys, etc.
  1761. The way to do this is with xmodmap (xterm) or loadkeys (console). For a
  1762. brief explanation, see [378]Section 3.0.5. For a fuller explanation,
  1763. [379]ClICK HERE.
  1764. Also see general comments on PC-based Unixes in [380]Section 3.0.
  1765. 3.6.1. SCO XENIX
  1766. [ [381]Top ] [ [382]Contents ] [ [383]Section Contents ] [ [384]Next ]
  1767. Old Xenix versions... Did you know: Xenix 3.0 is *older* than Xenix
  1768. 2.0?
  1769. In Xenix 2.3.4 and probably other Xenix versions, momentarily dropping
  1770. DTR to hang up a modem does not work. DTR goes down but does not come
  1771. up again. Workaround: Use SET MODEM HANGUP-METHOD MODEM-COMMAND.
  1772. Anybody who would like to fix this is welcome to take a look at
  1773. tthang() in [385]ckutio.c. Also: modem signals can not be read in
  1774. Xenix, and the maximum serial speed is 38400.
  1775. There is all sorts of confusion among SCO versions, particularly when
  1776. third- party communications boards and drivers are installed, regarding
  1777. lockfile naming conventions, as well as basic functionality. As far as
  1778. lockfiles go, all bets are off if you are using a third-party multiport
  1779. board. At least you have the source code. Hopefully you also have a C
  1780. compiler :-)
  1781. Xenix 2.3.0 and later claim to support RTSFLOW and CTSFLOW, but this is
  1782. not modern bidirectional hardware flow control; rather it implements
  1783. the original RS-232 meanings of these signals for unidirectional
  1784. half-duplex line access: If both RTSFLOW and CTSFLOW bits are set,
  1785. Xenix asserts RTS when it wants to send data and waits for CTS
  1786. assertion before it actually starts sending data (also, reportedly,
  1787. even this is broken in Xenix 2.3.0 and 2.3.1).
  1788. 3.6.2. SCO UNIX AND OSR5
  1789. [ [386]Top ] [ [387]Contents ] [ [388]Section Contents ] [ [389]Next ]
  1790. [ [390]Previous ]
  1791. SCO systems tend to use different names (i.e. drivers) for the same
  1792. device. Typically /dev/tty1a refers to a terminal device that has no
  1793. modem control; open, read, write, and close operations do not depend on
  1794. carrier. On the other hand, /dev/tty1A (same name, but with final
  1795. letter upper case), is the same device with modem control, in which
  1796. carrier is required (the SET LINE command does not complete until
  1797. carrier appears, read/write operations fail if there is no carrier,
  1798. etc).
  1799. SCO OpenServer 5.0.5 and earlier do not support the reading of modem
  1800. signals. Thus "show comm" does not list modem signals, and C-Kermit
  1801. does not automatically pop back to its prompt when the modem hangs up
  1802. the connection (drops CD). The ioctl() call for this is simply not
  1803. implemented, at least not in the standard drivers. OSR5.0.6 attempts to
  1804. deal with modem signals but fails; however OSR5.0.6a appears to
  1805. function properly.
  1806. Dialing is likely not to work well in SCO OpenServer 5.0.x because many
  1807. of the serial-port APIs simply do not operate when using the standard
  1808. drivers. For example, if DTR is dropped by the recommended method
  1809. (setting speed to 0 for half a seconds, then restoring the speed), DTR
  1810. and RTS go down but never come back up. When in doubt SET MODEM
  1811. HANGUP-METHOD MODEM-COMMAND or SET DIAL HANGUP OFF.
  1812. On the other hand, certain functions that might not (do not) work right
  1813. or at all when using SCO drivers (e.g. high serial speeds, hardware
  1814. flow control, and/or reading of modem signals) might work right when
  1815. using third-party drivers. (Example: hardware flow control works,
  1816. reportedly, only on uppercase device like tty1A -- not tty1a -- and
  1817. only when CLOCAL is clear when using the SCO sio driver, but there are
  1818. no such restrictions in, e.g., [391]Digiboard drivers).
  1819. One user reports that he can't transfer large files with C-Kermit under
  1820. SCO OSR5.0.0 and 5.0.4 -- after the first 5K, everything falls apart.
  1821. Same thing without Kermit -- e.g. with ftp over a PPP connection.
  1822. Later, he said that replacing SCO's SIO driver with FAS, an alternative
  1823. communications driver, made the problem go away:
  1824. [392]ftp://ftp.fu-berlin.de/pub/unix/driver/fas
  1825. With regard to bidirectional serial ports on OpenServer 5.0.4, the
  1826. following advice appeared on an SCO-related newsgroup:
  1827. No amount of configuration information is going to help you on 5.0.4
  1828. unless it includes the kludge for the primary problem. With almost
  1829. every modem, the 5.0.4 getty will barf messages and may or may not
  1830. connect. There are 2 solutions and only one works on 5.0.4. Get the
  1831. atdialer binary from a 5.0.0 system and substitute it for the native
  1832. 5.0.4 atdialer. The other solution is to upgrade to 5.0.5. And, most
  1833. of all, on any OpenServer products, do NOT run the badly broken
  1834. Modem Manager. Configure the modems in the time honored way that
  1835. dates back to Xenix.
  1836. Use SCO-provided utilities for switching the directionality of a modem
  1837. line, such as "enable" and "disable" commands. For example, to dial out
  1838. on tty1a, which is normally set up for logins:
  1839. disable tty1a
  1840. kermit -l /dev/tty1a
  1841. enable tty1a
  1842. If a tty device is listed as an ACU in /usr/lib/uucp/Devices and is
  1843. enabled, getty resets the ownership and permissions to uucp.uucp and
  1844. 640 every time the device is released. If you want to use the device
  1845. only for dialout, and you want to specify other owners or permissions,
  1846. you should disable it in /usr/lib/uucp/Devices; this will prevent getty
  1847. from doing things to it. You should also changes the device's file
  1848. modes in /etc/conf/node.d/sio by changing fields 5-7 for the desired
  1849. device(s); this determines how the devices are set if you relink the
  1850. kernel.
  1851. One SCO user of C-Kermit 5A(190) reported that only one copy of Kermit
  1852. can run at a time when a Stallion Technologies multiport boards are
  1853. installed. Cause, cure, and present status unknown (see [393]Section 14
  1854. for more info regarding Stallion).
  1855. Prior to SCO OpenServer 5.0.4, the highest serial port speed supported
  1856. by SCO was 38400. However, in some SCO versions (e.g. OSR5) it is
  1857. possible to map rarely-used lower speeds (like 600 and 1800) to higher
  1858. ones like 57600 and 115200. To find out how, go to
  1859. [394]http://www.sco.com/ and search for "115200". In OSR5.0.4, serial
  1860. speeds up to 921600 are supported through the POSIX interface; C-Kermit
  1861. 6.1.193 or later, when built for OSR5.0.4 using /bin/cc (NOT the UDK,
  1862. which hides the high-speed definitions from CPP), supports these
  1863. speeds, but you might be able to run this binary on earlier releases to
  1864. get the high serial speeds, depending on various factors, described by
  1865. Bela Lubkin of SCO:
  1866. Serial speeds under SCO Unix / Open Desktop / OpenServer
  1867. ========================================================
  1868. Third party drivers (intelligent serial boards) may provide any speeds
  1869. they desire; most support up to 115.2Kbps.
  1870. SCO's "sio" driver, which is used to drive standard serial ports with
  1871. 8250/16450/16550 and similar UARTs, was limited to 38400bps in older
  1872. releases. Support for rates through 115.2Kbps was added in the
  1873. following releases:
  1874. SCO OpenServer Release 5.0.0 (requires supplement "rs40b")
  1875. SCO OpenServer Release 5.0.2 (requires supplement "rs40a" or "rs40b")
  1876. SCO OpenServer Release 5.0.4 or later
  1877. SCO Internet FastStart Release 1.0.0 or later
  1878. SCO supplements are at [395]ftp://ftp.sco.com/; the "rs40" series are
  1879. under directory /Supplements/internet
  1880. Kermit includes the high serial speeds in all OSR5 builds, but that
  1881. does not necessarily mean they work. For example, on our in-house 5.0.5
  1882. system, SET SPEED 57600 or higher seems to succeed (no error occurs)
  1883. but when we read the speed back the driver says it is 50. Similarly,
  1884. 76800 becomes 75, and 115200 becomes 110. Testing shows the resulting
  1885. speed is indeed the low one we read back, not the high one we asked
  1886. for. Moral: Use speeds higher than 38400 with caution on SCO OSR5.
  1887. Reportedly, if you have a script that makes a TCP/IP SET HOST (e.g.
  1888. Telnet) connection to SCO 3.2v4.2 with TCP/IP 1.2.1, and then does the
  1889. following:
  1890. script $ exit
  1891. hangup
  1892. this causes a pseudoterminal (pty) to be consumed on the SCO system; if
  1893. you do it enough times, it will run out of ptys. An "exit" command is
  1894. being sent to the SCO shell, and a HANGUP command is executed locally,
  1895. so the chances are good that both sides are trying to close the
  1896. connection at once, perhaps inducing a race condition in which the
  1897. remote pty is not released. It was speculated that this would be fixed
  1898. by applying SLS net382e, but it did not. Meanwhile, the workaround is
  1899. to insert a "pause" between the SCRIPT and HANGUP commands. (The
  1900. situation with later SCO releases is not known.)
  1901. SCO UNIX and OpenServer allow their console and/or terminal drivers to
  1902. be configured to translate character sets for you. DON'T DO THIS WHEN
  1903. USING KERMIT! First of all, you don't need it -- Kermit itself already
  1904. does this for you. And second, it will (a) probably ruin the formatting
  1905. of your screens (depending on which emulation you are using); and (b)
  1906. interfere with all sorts of other things -- legibility of non-ASCII
  1907. text on the terminal screen, file transfer, etc. Use:
  1908. mapchan -n
  1909. to turn off this feature.
  1910. Note that there is a multitude of SCO entries in the makefile, many of
  1911. them exhibiting an unusually large number of compiler options. Some
  1912. people actually understand all of this. Reportedly, things are settling
  1913. down with SCO OpenServer 5.x and Unixware 7 (and Open UNIX 8 and who
  1914. knows what the next one will be -- Linux probably) -- the SCO UDK
  1915. compiler is said to generate binaries that will run on either platform,
  1916. by default, automatically. When using gcc or egcs, on the other hand,
  1917. differences persist, plus issues regarding the type of binary that is
  1918. generated (COFF, ELF, etc), and where and how it can run. All of this
  1919. could stand further clarification by SCO experts.
  1920. 3.6.3. Unixware
  1921. [ [396]Top ] [ [397]Contents ] [ [398]Section Contents ] [ [399]Next ]
  1922. [ [400]Previous ]
  1923. Unixware changed hands several times before landing at SCO, and so has
  1924. its [401]own section in this document. (Briefly: AT&T UNIX Systems
  1925. Laboratories sold the rights to the UNIX name and to System V R4 (or
  1926. R5?) to Novell; later Novell spun its UNIX division off into a new
  1927. company called Univel, which eventually was bought by SCO, which later
  1928. was bought by Caldera, which later sort of semi-spun-off SCO...)
  1929. 3.6.4. Open UNIX 8
  1930. [ [402]Top ] [ [403]Contents ] [ [404]Section Contents ] [
  1931. [405]Previous ]
  1932. SCO was bought by Caldera in 2000 or 2001 and evolved Unixware 7.1 into
  1933. Caldera Open UNIX 8.00. It's just like Unixware 7.1 as far as Kermit is
  1934. concerned (the Unixware 7.1 makefile target works for Open UNIX 8.00,
  1935. and in fact a Unixware 7.1 Kermit binary built on Unixware 7.1 runs
  1936. under OU8; a separate OU8 makefile target exists simply to generate an
  1937. appropriate program startup herald). Open Unix is now defunct;
  1938. subsequent releases are called UnixWare again (e.g. UnixWare 7.1.3).
  1939. 3.7. C-KERMIT AND SOLARIS
  1940. [ [406]Top ] [ [407]Contents ] [ [408]Section Contents ] [ [409]Next ]
  1941. [ [410]Previous ]
  1942. SECTION CONTENTS
  1943. 3.7.1. [411]Serial Port Configuration
  1944. 3.7.2. [412]Serial Port Problems
  1945. 3.7.3. [413]SunLink X.25
  1946. 3.7.4. [414]Sun Workstation Keyboard Mapping
  1947. 3.7.5. [415]Solaris 2.4 and Earlier
  1948. REFERENCES
  1949. * The [416]comp.unix.solaris newsgroup
  1950. * [417]http://access1.sun.com/
  1951. * [418]http://docs.sun.com/
  1952. * [419]http://www.sunhelp.com/
  1953. * [420]http://www.wins.uva.nl/pub/solaris/solaris2/
  1954. * [421]http://www.wins.uva.nl/cgi-bin/sfaq.cgi
  1955. * [422]ftp://ftp.wins.uva.nl/pub/solaris
  1956. * [423]http://www.science.uva.nl/pub/solaris/solaris2.html
  1957. And about serial communications in particular, see "Celeste's Tutorial
  1958. on Solaris 2.x Modems and Terminals":
  1959. [424]http://www.stokely.com/
  1960. In particular:
  1961. [425]http://www.stokely.com/unix.sysadm.resources/faqs.sun.html
  1962. For PC-based Solaris, also see general comments on PC-based Unixes in
  1963. [426]Section 3.0. Don't expect Solaris or any other kind of Unix to
  1964. work right on a PC until you resolve all interrupt conflicts. Don't
  1965. expect to be able to use COM3 or COM4 (or even COM2) until you have
  1966. configured their addresses and interrupts.
  1967. 3.7.1. Serial Port Configuration
  1968. [ [427]Top ] [ [428]Contents ] [ [429]Section Contents ] [ [430]Section
  1969. Contents ] [ [431]Next ]
  1970. Your serial port can't be used -- or at least won't work right -- until
  1971. it is enabled in Solaris. For example, you get a message like "SERIAL:
  1972. Operation would block" when attempting to dial. This probably indicates
  1973. that the serial port has not been enabled for use with modems. You'll
  1974. need to follow the instructions in your system setup or management
  1975. manual, such as (e.g.) the Desktop SPARC Sun System & Network Manager's
  1976. Guide, which should contain a section "Setting up Modem Software"; read
  1977. it and follow the instructions. These might (or might not) include
  1978. running a program called "eeprom", editing some system configuration
  1979. file (such as, for example:
  1980. /platform/i86pc/kernel/drv/asy.conf
  1981. and then doing a configuration reboot, or running some other programs
  1982. like drvconfig and devlinks. "man eeprom" for details.
  1983. Also, on certain Sun models like IPC, the serial port hardware might
  1984. need to have a jumper changed to make it an RS-232 port rather than
  1985. RS-423.
  1986. eeprom applies only to real serial ports, not to "Spiff" devices
  1987. (serial port expander), in which case setup with Solaris' admintool is
  1988. required.
  1989. Another command you might need to use is pmadm, e.g.:
  1990. pmadm -d -p zsmon -s tty3
  1991. pmadm -e -p zsmon -s tty3
  1992. You can use the following command to check if a process has the device
  1993. open:
  1994. fuser -f /dev/term/3
  1995. In some cases, however (according to Sun support, May 2001) "It is
  1996. still possible that a zombie process has hold of the port EVEN IF there
  1997. is no lock file and the fuser command comes up empty. In that case, the
  1998. only way to resolve the problem is by rebooting."
  1999. If you can't establish communication through a serial port to a device
  2000. that is not asserting CD (Carrier Detect), try setting the environment
  2001. variable "ttya-ignore-cd" to "true" (replace "ttya" with the port
  2002. name).
  2003. 3.7.2. Serial Port Problems
  2004. [ [432]Top ] [ [433]Contents ] [ [434]Section Contents ] [ [435]Next ]
  2005. [ [436]Previous ]
  2006. Current advice from Sun is to always the /dev/cua/x devices for dialing
  2007. out, rather than the /dev/term/x. Nevertheless, if you have trouble
  2008. dialing out with one, try the other.
  2009. Reportedly, if you start C-Kermit and "set line" to a port that has a
  2010. modem connected to it that is not turned on, and then "set flow
  2011. rts/cts", there might be some (unspecified) difficulties closing the
  2012. device because the CTS signal is not coming in from the modem.
  2013. 3.7.3. SunLink X.25
  2014. [ [437]Top ] [ [438]Contents ] [ [439]Section Contents ] [ [440]Next ]
  2015. [ [441]Previous ]
  2016. The built-in SunLink X.25 support for Solaris 2.3/2.4./25 and SunLink
  2017. 8.01 or 9.00 works OK provided the X.25 system has been installed and
  2018. initialized properly. Packet sizes might need to be reduced to 256,
  2019. maybe even less, depending on the configuration of the X.25
  2020. installation. On one connection where C-Kermit 6.0 was tested, very
  2021. large packets and window sizes could be used in one direction, but only
  2022. very small ones would work in the other.
  2023. In any case, according to Sun, C-Kermit's X.25 support is superfluous
  2024. with SunLink 8.x / Solaris 2.3. Quoting an anonymous Sun engineer:
  2025. ... there is now no need to include any X.25 code within kermit. As
  2026. of X.25 8.0.1 we support the use of kermit, uucp and similar
  2027. protocols over devices of type /dev/xty. This facility was there in
  2028. 8.0, and should also work on the 8.0 release if patch 101524 is
  2029. applied, but I'm not 100% sure it will work in all cases, which is
  2030. why we only claim support from 8.0.1 onwards.
  2031. When configuring X.25, on the "Advanced Configuration->Parameters"
  2032. screen of the x25tool you can select a number of XTY devices. If you
  2033. set this to be > 1, press Apply, and reboot, you will get a number
  2034. of /dev/xty entries created.
  2035. Ignore /dev/xty0, it is a special case. All the others can be used
  2036. exactly as if they were a serial line (e.g. /dev/tty) connected to a
  2037. modem, except that instead of using Hayes-style commands, you use
  2038. PAD commands.
  2039. From kermit you can do a 'set line' command to, say, /dev/xty1, then
  2040. set your dialing command to be "CALL 12345678", etc. All the usual
  2041. PAD commands will work (SET, PAR, etc).
  2042. I know of one customer in Australia who is successfully using this,
  2043. with kermit scripts, to manage some X.25-connected switches. He used
  2044. standard kermit, compiled for Solaris 2, with X.25 8.0 xty devices.
  2045. 3.7.4. Sun Workstation Keyboard Mapping
  2046. [ [442]Top ] [ [443]Contents ] [ [444]Section Contents ] [ [445]Next ]
  2047. [ [446]Previous ]
  2048. Hints for using a Sun workstation keyboard for VT emulation when
  2049. accessing VMS, from the [447]comp.os.vms newsgroup:
  2050. From: Jerry Leichter <leichter@smarts.com>
  2051. Newsgroups: comp.os.vms
  2052. Subject: Re: VT100 keyboard mapping to Sun X server
  2053. Date: Mon, 19 Aug 1996 12:44:21 -0400
  2054. > I am stuck right now using a Sun keyboard (type 5) on systems
  2055. running SunOS
  2056. > and Solaris. I would like to use EVE on an OpenVMS box with
  2057. display back to
  2058. > the Sun. Does anyone know of a keyboard mapping (or some other
  2059. procedure)
  2060. > which will allow the Sun keyboard to approximate a VT100/VT220?
  2061. You can't get it exactly - because the keypad has one fewer key -
  2062. but you can come pretty close. Here's a set of keydefs I use:
  2063. keycode 101=KP_0
  2064. keycode 119=KP_1
  2065. keycode 120=KP_2
  2066. keycode 121=KP_3
  2067. keycode 98=KP_4
  2068. keycode 99=KP_5
  2069. keycode 100=KP_6
  2070. keycode 75=KP_7
  2071. keycode 76=KP_8
  2072. keycode 77=KP_9
  2073. keycode 52=KP_F1
  2074. keycode 53=KP_F2
  2075. keycode 54=KP_F3
  2076. keycode 57=KP_Decimal
  2077. keycode 28=Left
  2078. keycode 29=Right
  2079. keycode 30=KP_Separator
  2080. keycode 105=KP_F4
  2081. keycode 78=KP_Subtract
  2082. keycode 8=Left
  2083. keycode 10=Right
  2084. keycode 32=Up
  2085. keycode 33=Down
  2086. keycode 97=KP_Enter
  2087. Put this in a file - I use "keydefs" in my home directory and feed
  2088. it into xmodmap:
  2089. xmodmap - <$HOME/keydefs
  2090. This takes care of the arrow keys and the "calculator" key cluster.
  2091. The "+" key will play the role of the DEC "," key. The Sun "-" key
  2092. will be like the DEC "-" key, though it's in a physically different
  2093. position - where the DEC PF4 key is. The PF4 key is ... damn, I'm
  2094. not sure where "key 105" is. I *think* it may be on the leftmost key
  2095. of the group of four just above the "calculator" key cluster.
  2096. I also execute the following (this is all in my xinitrc file):
  2097. xmodmap -e 'keysym KP_Decimal = KP_Decimal'
  2098. xmodmap -e 'keysym BackSpace = Delete BackSpace' \
  2099. -e 'keysym Delete = BackSpace Delete'
  2100. xmodmap -e 'keysym KP_Decimal = Delete Delete KP_Decimal'
  2101. xmodmap -e 'add mod1 = Meta_R'
  2102. xmodmap -e 'add mod1 = Meta_L'
  2103. Beware of one thing about xmodmap: Keymap changes are applied to the
  2104. *whole workstation*, not just to individual windows. There is, in
  2105. fact, no way I know of to apply them to individual windows. These
  2106. definitions *may* confuse some Unix programs (and/or some Unix
  2107. users).
  2108. If you're using Motif, you may also need to apply bindings at the
  2109. Motif level. If just using xmodmap doesn't work, I can try and dig
  2110. that stuff up for you.
  2111. 3.7.5. Solaris PPP Connections
  2112. [ [448]Top ] [ [449]Contents ] [ [450]Section Contents ] [ [451]Next ]
  2113. [ [452]Previous ]
  2114. The following is a report from a user of C-Kermit 8.0 on Solaris 8 and
  2115. 9, who had complained that while Kermit file transfers worked perfectly
  2116. on direct (non-PPP) dialout connections, they failed miserably on PPP
  2117. connections. We suggested that the PPP dialer probably was not setting
  2118. the port and/or modem up in the same way that Kermit did:
  2119. I want to get back on this and tell you what the resolution was. You
  2120. pointed me in the direction of flow control, which turned out to be
  2121. the key.
  2122. Some discussion on the comp.unix.solaris newsgroup led to some
  2123. comments from Greg Andrews about the need to use the uucp driver to
  2124. talk to the modem (/dev/cua/a). I had to remind Greg that no matter
  2125. what the manpages for the zs and se drivers say, the ppp that Sun
  2126. released with Solaris 8 7/01, and has in Solaris 9, is a setuid root
  2127. program, and simply trying to make a pppd call from user space
  2128. specifying /dev/cua/a would fail because of permissions. Greg
  2129. finally put the question to the ppp people, who came back with
  2130. information that is not laid out anywhere in the docs available for
  2131. Solaris users. Namely, put /dev/cua/a in one of the privileged
  2132. options files in the /etc/ppp directory. That, plus resetting the
  2133. OBP ttya-ignore-cd flag (this is Sun hardware) to false, seems to
  2134. have solved the problems.
  2135. While I note that I had installed Kermit suid to uucp to use
  2136. /dev/cua/a on this particular box, it seems to run fine through
  2137. /dev/term/a. Not so with pppd.
  2138. With this change in place, I seem to be able to upload and download
  2139. through telnet run on Kermit with the maximum length packets. I note
  2140. that the window allocation display does show STREAMING, using
  2141. telnet. Running ssh on Kermit, I see the standard 1 of 30 windows
  2142. display, and note that there appears to be a buffer length limit
  2143. between 1000 and 2000 bytes. Run with 1000, and it's tick-tock,
  2144. solid as a rock. With 2000 I see timeout errors and RTS/CTS action
  2145. on the modem.
  2146. Kermit's packet-length and other controls let you make adjustments like
  2147. this to get around whatever obstacles might be thrown up -- in this
  2148. case (running Kermit over ssh), the underling Solaris PTY driver.
  2149. 3.7.6. Solaris 2.4 and Earlier
  2150. [ [453]Top ] [ [454]Contents ] [ [455]Section Contents ] [
  2151. [456]Previous ]
  2152. C-Kermit can't be compiled successfully under Solaris 2.3 using
  2153. SUNWspro cc 2.0.1 unless at least some of the following patches are
  2154. applied to cc (it is not known which one(s), if any, fix the problem):
  2155. * 100935-01 SparcCompiler C 2.0.1: bad code generated when addresses
  2156. of two double arguments are involved
  2157. * 100961-05 SPARCcompilers C 2.0.1: conditional expression with
  2158. function returning structure gives wrong value
  2159. * 100974-01 SparcWorks 2.0.1: dbx jumbo patch
  2160. * 101424-01 SPARCworks 2.0.1 maketool SEGV's instantly on Solaris 2.3
  2161. With unpatched cc 2.0.1, the symptom is that certain modules generate
  2162. truncated object files, resulting in many unresolved references at link
  2163. time.
  2164. The rest of the problems in this section have to do with
  2165. bidirectional terminal ports and the Solaris Port Monitor. A bug in
  2166. C-Kermit 5A ticked a bug in Solaris. The C-Kermit bug was fixed in
  2167. version 6.0, and the Solaris bug was fixed in 2.4 (I think, or maybe
  2168. 2.5).
  2169. Reportedly, "C-Kermit ... causes a SPARCstation running Solaris 2.3 to
  2170. panic after the modem connects. I have tried compiling C-Kermit with
  2171. Sun's unbundled C compiler, with GCC Versions 2.4.5 and 2.5.3, with
  2172. make targets 'sunos51', 'sunos51tcp', 'sunos51gcc', and even 'sys5r4',
  2173. and each time it compiles and starts up cleanly, but without fail, as
  2174. soon as I dial the number and get a 'CONNECT' message from the modem, I
  2175. get:
  2176. BAD TRAP
  2177. kermit: Data fault
  2178. kernel read fault at addr=0x45c, pme=0x0
  2179. Sync Error Reg 80 <INVALID>
  2180. ...
  2181. panic: Data Fault.
  2182. ...
  2183. Rebooting...
  2184. The same modem works fine for UUCP/tip calling." Also (reportedly),
  2185. this only happens if the dialout port is configured as in/out via
  2186. admintool. If it is configured as out-only, no problem. This is the
  2187. same dialing code that works on hundreds of other System-V based Unix
  2188. OS's. Since it should be impossible for a user program to crash the
  2189. operating system, this problem must be chalked up to a Solaris bug.
  2190. Even if you SET CARRIER OFF, CONNECT, and dial manually by typing
  2191. ATDTnnnnnnn, the system panics as soon as the modem issues its CONNECT
  2192. message. (Clearly, when you are dialing manually, C-Kermit does not
  2193. know a thing about the CONNECT message, and so the panic is almost
  2194. certainly caused by the transition of the Carrier Detect (CD) line from
  2195. off to on.) This problem was reported by many users, all of whom say
  2196. that C-Kermit worked fine on Solaris 2.1 and 2.2. If the speculation
  2197. about CD is true, then a possible workaround might be to configure the
  2198. modem to leave CD on (or off) all the time. Perhaps by the time you
  2199. read this, a patch will have been issued for Solaris 2.3.
  2200. The following is from Karl S. Marsh, Systems & Networks Administrator,
  2201. AMBIX Systems Corp, Rochester, NY:
  2202. Environment: Solaris 2.3 Patch 101318-45 C-Kermit 5A(189) (and
  2203. presumably this applies to 188 and 190 also). eeprom setting:
  2204. ttya-rts-dtr-off=false
  2205. ttya-ignore-cd=false
  2206. ttya-mode=19200,8,n,8,-
  2207. To use C-Kermit on a bidirectional port in this environment, do not
  2208. use admintool to configure the port. Use admintool to delete any
  2209. services running on the port and then quit admintool and issue the
  2210. following command:
  2211. pmadm -a -p zsmon -s ttyb -i root -fu -v 1 -m "`ttyadm -b -d /dev/term/b \
  2212. -l conttyH -m ldterm,ttcompat -s /usr/bin/login -S n`"
  2213. [NOTE: This was copied from a blurry fax, so please check it
  2214. carefully] where:
  2215. -a = Add service
  2216. -p = pmtag (zsmon)
  2217. -s = service tag (ttyb)
  2218. -i = id to be associated with service tag (root)
  2219. -fu = create utmp entry
  2220. -v = version of ttyadm
  2221. -m = port monitor-specific portion of the port monitor administrative file
  2222. entry for the service
  2223. -b = set up port for bidirectional use
  2224. -d = full path name of device
  2225. -l = which ttylabel in the /etc/ttydefs file to use
  2226. -m = a list of pushable STREAMS modules
  2227. -s = pathname of service to be invoked when connection request received
  2228. -S = software carrier detect on or off (n = off)
  2229. "This is exactly how I was able to get Kermit to work on a
  2230. bi-directional port without crashing the system."
  2231. On the Solaris problem, also see SunSolve Bug ID 1150457 ("Using
  2232. C-Kermit, get Bad Trap on receiving prompt from remote system").
  2233. Another user reported "So, I have communicated with the Sun tech
  2234. support person that submitted this bug report [1150457]. Apparently,
  2235. this bug was fixed under one of the jumbo kernel patches. It would seem
  2236. that the fix did not live on into 101318-45, as this is EXACTLY the
  2237. error that I see when I attempt to use kermit on my system."
  2238. Later (Aug 94)... C-Kermit dialout successfully tested on a Sun4m with
  2239. a heavily patched Solaris 2.3. The patches most likely to have been
  2240. relevant:
  2241. * 101318-50: SunOS 5.3: Jumbo patch for kernel (includes libc, lockd)
  2242. * 101720-01: SunOS 5.3: ttymon - prompt not always visible on a modem
  2243. connection
  2244. * 101815-01: SunOS 5.3: Data fault in put() NULL queue passed from
  2245. ttycommon_qfull()
  2246. * 101328-01: SunOS 5.3: Automation script to properly setup tty ports
  2247. prior to PCTS execution
  2248. Still later (Nov 94): another user (Bo Kullmar in Sweden) reports that
  2249. after using C-Kermit to dial out on a bidirectional port, the port
  2250. might not answer subsequent incoming calls, and says "the problem is
  2251. easy enough to fix with the Serial Port Manager; I just delete the
  2252. service and install it again using the graphical interface, which
  2253. underneath uses commands like sacadm and pmadm." Later Bo reports, "I
  2254. have found that if I run Kermit with the following script then it
  2255. works. This script is for /dev/cua/a, "-s a" is the last a in
  2256. /dev/cua/a:
  2257. #! /bin/sh
  2258. kermit
  2259. sleep 2
  2260. surun pmadm -e -p zsmon -s a
  2261. 3.8. C-KERMIT AND SUNOS
  2262. [ [457]Top ] [ [458]Contents ] [ [459]Section Contents ] [ [460]Next ]
  2263. [ [461]Previous ]
  2264. For additional information, see "Celeste's Tutorial on SunOS 4.1.3+
  2265. Modems and Terminals":
  2266. [462]http://www.stokely.com/
  2267. For FAQs, etc, from Sun, see:
  2268. * [463]http://access1.sun.com/
  2269. For history of Sun models and SunOS versions, see (should be all the
  2270. same):
  2271. * [464]http://www.ludd.luth.se/~bear/project/sun/sun.hardware.txt
  2272. * [465]ftp://ftp.netcom.com/pub/ru/rubicon/sun.hdwr.ref
  2273. * [466]ftp://ftp.intnet.net/pub/SUN/Sun-Hardware-Ref
  2274. Sun SPARCstation users should read the section "Setting up Modem
  2275. Software" in the Desktop SPARC Sun System & Network Manager's Guide. If
  2276. you don't set up your serial ports correctly, Kermit (and other
  2277. communications software) won't work right.
  2278. Also, on certain Sun models like IPC, the serial port hardware might
  2279. need to have a jumper changed to make it an RS-232 port rather than
  2280. RS-423.
  2281. Reportedly, C-Kermit does not work correctly on a Sun SPARCstation in
  2282. an Open Windows window with scrolling enabled. Disable scrolling, or
  2283. else invoke Kermit in a terminal emulation window (xterm, crttool,
  2284. vttool) under SunView (this might be fixed in later SunOS releases).
  2285. On the Sun with Open Windows, an additional symptom has been reported:
  2286. outbound SunLink X.25 connections "magically" translate CR typed at the
  2287. keyboard into LF before transmission to the remote host. This doesn't
  2288. happen under SunView.
  2289. SET CARRIER ON, when used on the SunOS 4.1 version of C-Kermit
  2290. (compiled in the BSD universe), causes the program to hang
  2291. uninterruptibly when SET LINE is issued for a device that is not
  2292. asserting carrier. When Kermit is built in the Sys V universe on the
  2293. same computer, there is no problem (it can be interrupted with Ctrl-C).
  2294. This is apparently a limitation of the BSD-style tty driver.
  2295. SunOS 4.1 C-Kermit has been observed to dump core when running a
  2296. complicated script program under cron. The dump invariably occurs in
  2297. ttoc(), while trying to output a character to a TCP/IP TELNET
  2298. connection. ttoc() contains a write() call, and when the system or the
  2299. network is very busy, the write() call can get stuck for long periods
  2300. of time. To break out of deadlocks caused by stuck write() calls, there
  2301. is an alarm around the write(). It is possible that the core dump
  2302. occurs when this alarm signal is caught. (This one has not been
  2303. observed recently -- possibly fixed in edit 190.)
  2304. On Sun computers with SunOS 4.0 or 4.1, SET FLOW RTS/CTS works only if
  2305. the carrier signal is present from the communication device at the time
  2306. when C-Kermit enters packet mode or CONNECT mode. If carrier is not
  2307. sensed (e.g. when dialing), C-Kermit does not attempt to turn on
  2308. RTS/CTS flow control. This is because the SunOS serial device driver
  2309. does not allow characters to be output if RTS/CTS is set (CRTSCTS) but
  2310. carrier (and DSR) are not present. Workaround (maybe): SET CARRIER OFF
  2311. before giving the SET LINE command, establish the connection, then SET
  2312. FLOW RTS/CTS
  2313. It has also been reported that RTS/CTS flow control under SunOS 4.1
  2314. through 4.1.3 works only on INPUT, not on output, and that there is a
  2315. patch from Sun to correct this problem: Patch-ID# T100513-04, 20 July
  2316. 1993 (this patch might apply only to SunOS 4.1.3). It might also be
  2317. necessary to configure the eeprom parameters of the serial port; e.g.
  2318. do the following as root at the shell prompt:
  2319. eeprom ttya-ignore-cd=false
  2320. eeprom ttya-rts-dtr-off=true
  2321. There have been reports of file transfer failures on Sun-3 systems when
  2322. using long packets and/or large window sizes. One user says that when
  2323. this happens, the console issues many copies of this message:
  2324. chaos vmunix: zs1: ring buffer overflow
  2325. This means that SunOS is not scheduling Kermit frequently enough to
  2326. service interrupts from the zs serial device (Zilog 8350 SCC serial
  2327. communication port) before its input silo overflows. Workaround: use
  2328. smaller packets and/or a smaller window size, or use "nice" to increase
  2329. Kermit's priority. Use hardware flow control if available, or remove
  2330. other active processes before running Kermit.
  2331. SunLink X.25 support in C-Kermit 5A(190) was built and tested
  2332. successfully under SunOS 4.1.3b and SunLink X.25 7.00.
  2333. 3.9. C-KERMIT AND ULTRIX
  2334. [ [467]Top ] [ [468]Contents ] [ [469]Section Contents ] [ [470]Next ]
  2335. [ [471]Previous ]
  2336. See also: The [472]comp.unix.ultrix and [473]comp.sys.dec newsgroups.
  2337. There is no hardware flow control in Ultrix. That's not a Kermit
  2338. deficiency, but an Ultrix one.
  2339. When sending files to C-Kermit on a Telnet connection to a remote
  2340. Ultrix system, you must SET PREFIXING ALL (or at least prefix more
  2341. control characters than are selected by SET PREFIXING CAUTIOUS).
  2342. Reportedly, DEC ULTRIX 4.3 is immune to C-Kermit's disabling of
  2343. SIGQUIT, which is the signal that is generated when the user types
  2344. Ctrl-\, which kills the current process (i.e. C-Kermit) and dumps core.
  2345. Diagnosis and cure unknown. Workaround: before starting C-Kermit -- or
  2346. for that matter, when you first log in because this applies to all
  2347. processes, not just Kermit -- give the following Unix command:
  2348. stty quit undef
  2349. Certain operations driven by RS-232 modem signal do not work on
  2350. DECstations or other DEC platforms whose serial interfaces use MMP
  2351. connectors (DEC version of RJ45 telephone jack with offset tab). These
  2352. connectors convey only the DSR and DTR modem signals, but not carrier
  2353. (CD), RTS, CTS, or RI. Use SET CARRIER OFF to enable communication, or
  2354. "hotwire" DSR to CD.
  2355. The maximum serial speed on the DECstation 5000 is normally 19200, but
  2356. various tricks are available (outside Kermit) to enable higher rates.
  2357. For example, on the 5000/200, 19200 can be remapped (somehow, something
  2358. to do with "a bit in the SIR", whatever that is) to 38400, but in
  2359. software you must still refer to this speed as 19200; you can't have
  2360. 19200 and 38400 available at the same time.
  2361. 19200, reportedly, is also the highest speed supported by Ultrix, but
  2362. NetBSD reportedly supports speeds up to 57600 on the DECstation,
  2363. although whether and how well this works is another question.
  2364. In any case, given the lack of hardware flow control in Ultrix, high
  2365. serial speeds are problematic at best.
  2366. 3.10. C-KERMIT AND UNIXWARE
  2367. [ [474]Top ] [ [475]Contents ] [ [476]Section Contents ] [ [477]Next ]
  2368. [ [478]Previous ]
  2369. See also:
  2370. * The Freebird Project (Unixware software repository)
  2371. [479]http://www.freebird.org/
  2372. * The UnixWare FAQ: [480]http://www.freebird.org/faq/
  2373. * The following newsgroups:
  2374. + [481]comp.unix.unixware.misc
  2375. + [482]comp.unix.sco.misc.
  2376. Also see general comments on PC-based Unixes in [483]Section 3.0. By
  2377. the way, this section is separate from the SCO (Caldera) section
  2378. because at the time this section was started, Unixware was owned by a
  2379. company called Univel. Later it was sold to Novell, and then to SCO.
  2380. Still later, SCO was sold to Caldera.
  2381. In Unixware 2.0 and later, the preferred serial device names (drivers)
  2382. are /dev/term/00 (etc), rather than /dev/tty00 (etc). Note the
  2383. following correspondence of device names and driver characteristics:
  2384. New name Old name Description
  2385. /dev/term/00 /dev/tty00 ???
  2386. /dev/term/00h /dev/tty00h Modem signals and hardware flow control
  2387. /dev/term/00m /dev/tty00m Modem signals(?)
  2388. /dev/term/00s /dev/tty00s Modem signals and software flow control
  2389. /dev/term/00t /dev/tty00t ???
  2390. Lockfile names use device.major.minor numbers, e.g.:
  2391. /var/spool/locks/LK.7679.003.005
  2392. The minor number varies according to the device name suffix (none, h,
  2393. m, s, or t). Only the device and major number are compared, and thus
  2394. all of the different names for the same physical device (e.g. all of
  2395. those shown in the table above) interlock effectively.
  2396. Prior to UnixWare 7, serial speeds higher than 38400 are not supported.
  2397. In UnixWare 7, we also support 57600 and 115200, plus some unexpected
  2398. ones like 14400, 28800, and 76800, by virtue of a strange new
  2399. interface, evidently peculiar to UnixWare 7, discovered while digging
  2400. through the header files: tcsetspeed(). Access to this interface is
  2401. allowed only in POSIX builds, and thus the UnixWare 7 version of
  2402. C-Kermit is POSIX-based, unlike C-Kermit for Unixware 1.x and 2.x
  2403. (since the earlier UnixWare versions did not support high serial
  2404. speeds, period).
  2405. HOWEVER, turning on POSIX features engages all of the "#if
  2406. (!_POSIX_SOURCE)" clauses in the UnixWare header files, which in turn
  2407. prevent us from having modem signals, access to the hardware flow
  2408. control APIs, select(), etc -- in short, all the other things we need
  2409. in communications software, especially when high speeds are used. Oh
  2410. the irony. And so C-Kermit must be shamelessly butchered -- as it has
  2411. been so many times before -- to allow us to have the needed features
  2412. from the POSIX and non-POSIX worlds. See the UNIXWAREPOSIX sections of
  2413. [484]ckutio.c.
  2414. After the butchery, we wind up with Unixware 2.x having full
  2415. modem-signal capability, but politically-correct Unixware 7.x lacking
  2416. the ability to automatically detect a broken connection when carrier
  2417. drops.
  2418. Meanwhile the Unixware tcsetspeed() function allows any number at all
  2419. (any long, 0 or positive) as an argument and succeeds if the number is
  2420. a legal bit rate for the serial device, and fails otherwise. There is
  2421. no list anywhere of legal speeds. Thus the SET SPEED keyword table
  2422. ("set speed ?" to see it) is hardwired based on trial and error with
  2423. all known serial speeds, the maximum being 115200. However, to allow
  2424. for the possibility that other speeds might be allowed in the future
  2425. (or with different port drivers), the SET SPEED command for UnixWare 7
  2426. only allows you to specify any number at all; a warning is printed if
  2427. the number is not in the list, but the number is accepted anyway; the
  2428. command succeeds if tcsetspeed() accepts the number, and fails
  2429. otherwise.
  2430. In C-Kermit 8.0 testing, it was noticed that the POSIX method for
  2431. hanging up the phone by dropping DTR (set speed 0, pause, restore
  2432. speed) did not actually drop DTR. The APIs do not return any error
  2433. indication, but nothing happens. I changed tthang() to skip the special
  2434. case I had made for Unixware and instead follow the normal path: if
  2435. TIOCSDTR is defined use that, otherwise blah blah... It turns out
  2436. TIOCSDTR *is* defined, and it works.
  2437. So in Unixware (at least in 2.1.3) we can read modem signals, hangup by
  2438. toggling DTR, and so on, BUT... But once the remote hangs up and
  2439. Carrier drops, the API for reading modem signals ceases to function;
  2440. although the device is still open, the TIOCMGET ioctl always raises
  2441. errno 6 = ENXIO, "No such device or address".
  2442. Old business:
  2443. Using C-Kermit 6.0 on the UnixWare 1.1 Application Server, one user
  2444. reported a system panic when the following script program is executed:
  2445. set line /dev/tty4
  2446. set speed 9600
  2447. output \13
  2448. connect
  2449. The panic does not happen if a PAUSE is inserted:
  2450. set line /dev/tty4
  2451. set speed 9600
  2452. pause 1
  2453. output \13
  2454. connect
  2455. This is using a Stallion EasyIO card installed as board 0 on IRQ 12 on
  2456. a Gateway 386 with the Stallion-supplied driver. The problem was
  2457. reported to Novell and Stallion and (reportedly) is now fixed.
  2458. 3.11. C-KERMIT AND APOLLO SR10
  2459. [ [485]Top ] [ [486]Contents ] [ [487]Section Contents ] [ [488]Next ]
  2460. [ [489]Previous ]
  2461. Reportedly, version 5A(190), when built under Apollo SR10 using "make
  2462. sr10-bsd", compiles, links, and executes OK, but leaves the terminal
  2463. unusable after it exits -- the "cs7" or "cs8" (character size)
  2464. parameter has become cs5. The terminal must be reset from another
  2465. terminal. Cause and cure unknown. Suggested workaround: Wrap Kermit in
  2466. a shell script something like:
  2467. kermit @*
  2468. stty sane
  2469. 3.12. C-KERMIT AND TANDY XENIX 3.0
  2470. [ [490]Top ] [ [491]Contents ] [ [492]Section Contents ] [ [493]Next ]
  2471. [ [494]Previous ]
  2472. C-Kermit 7.0 was too big to be built on Tandy Xenix, even in a minimum
  2473. configuration; version 6.0 is the last one that fits.
  2474. Reportedly, in C-Kermit 6.0, if you type lots of Ctrl-C's during
  2475. execution of the initialization file, ghost Kermit processes will be
  2476. created, and will compete for the keyboard. They can only be removed
  2477. via "kill -9" from another terminal, or by rebooting. Diagnosis --
  2478. something strange happening with the SIGINT handler while the process
  2479. is reading the directory (it seems to occur during the SET PROMPT
  2480. [\v(dir)] ... sequence). Cure: unknown. Workaround: don't interrupt
  2481. C-Kermit while it is executing its init file on the Tandy 16/6000.
  2482. 3.13. C-KERMIT AND OSF/1 (DIGITAL UNIX) (TRU64 UNIX)
  2483. [ [495]Top ] [ [496]Contents ] [ [497]Section Contents ] [ [498]Next ]
  2484. [ [499]Previous ]
  2485. While putting together and testing C-Kermit 8.0, it was discovered that
  2486. binaries built for one version of Tru64 Unix (e.g. 4.0G) might exhibit
  2487. very strange behavior if run on a different version of Tru64 Unix (e.g.
  2488. 5.1A). The typical symptom was that a section of the initialization
  2489. file would be skipped, notably locating the dialing and/or network
  2490. directory as well as finding and executing the customization file,
  2491. ~/.mykermrc. This problem also is reported to occur on Tru64 Unix 5.0
  2492. (Rev 732) even when running a C-Kermit binary that was built there.
  2493. However, the Tru64 5.1A binary works correctly on 5.0. Go figure.
  2494. When making Telnet connections to a Digital Unix or Tru64 system, and
  2495. your Telnet client forwards your user name, the Telnet server evidently
  2496. stuffs the username into login's standard input, and you see:
  2497. login: ivan
  2498. Password:
  2499. This is clearly going to play havoc with scripts that look for
  2500. "login:". Workaround (when Kermit is your Telnet client): SET LOGIN
  2501. USER to nothing, to prevent Kermit from sending your user ID.
  2502. Before you can use a serial port on a new Digital Unix system, you must
  2503. run uucpsetup to enable or configure the port. Evidently the /dev/tty00
  2504. and 01 devices that appear in the configuration are not usable;
  2505. uucpsetup turns them into /dev/ttyd00 and 01, which are. Note that
  2506. uucpsetup and other uucp-family programs are quite primitive -- they
  2507. only know about speeds up to 9600 bps and their selection of modems
  2508. dates from the early 1980s. None of this affects Kermit, though -- with
  2509. C-Kermit, you can use speeds up to 115200 bps (at least in DU4.0 and
  2510. later) and modern modems with hardware flow control and all the rest.
  2511. Reportedly, if a modem is set for &S0 (assert DSR at all times), the
  2512. system resets or drops DTR every 30 seconds; reportedly DEC says to set
  2513. &S1.
  2514. Digital Unix 3.2 evidently wants to believe your terminal is one line
  2515. longer than you say it is, e.g. when a "more" or "man" command is
  2516. given. This is has nothing to do with C-Kermit, but tends to annoy
  2517. those who use Kermit or other terminal emulators to access Digital Unix
  2518. systems. Workaround: tell Unix to "stty rows 23" (or whatever).
  2519. Reportedly, there is some bizarre behavior when trying to use a version
  2520. of C-Kermit built on one Digital Unix 4.0 system on another one,
  2521. possibly due to differing OS or library revision levels; for example,
  2522. the inability to connect to certain TCP/IP hosts. Solution: rebuild
  2523. C-Kermit from source code on the system where you will be using it.
  2524. Digital Unix tgetstr() causes a segmentation fault. C-Kermit 7.0 added
  2525. #ifdefs to avoid calling this routine in Digital Unix. As a result, the
  2526. SCREEN commands always send ANSI escape sequences -- even though curses
  2527. knows your actual terminal type.
  2528. Reportedly the Tru64 Unix 4.0E 1091 Telnet server does not tolerate
  2529. streaming transfers into itself, at least not when the sending Kermit
  2530. is on the same local network. Solution: tell one Kermit or the other
  2531. (or both) to "set streaming off". This might or might be the case with
  2532. earlier and/or later Tru64, Digital Unix, and OSF/1 releases.
  2533. 3.14. C-KERMIT AND SGI IRIX
  2534. [ [500]Top ] [ [501]Contents ] [ [502]Section Contents ] [ [503]Next ]
  2535. [ [504]Previous ]
  2536. See also:
  2537. * The [505]comp.sys.sgi.misc and [506]comp.sys.sgi.admin newsgroups.
  2538. [507]The SGI website
  2539. * The SGI FAQ:
  2540. + [508]http://www-viz.tamu.edu/~sgi-faq/
  2541. + [509]ftp://viz.tamu.edu/pub/sgi/faq/
  2542. About IRIX version numbers: "uname -a" tells the "two-digit" version
  2543. number, such as "5.3" or "6.5". The three-digit form can be seen with
  2544. "uname -R". (this information is unavailable at the simple API level).
  2545. Supposedly all three-digit versions within the same two-digit version
  2546. (e.g. 6.5.2, 6.5.3) are binary compatible; i.e. a binary built on any
  2547. one of them should run on all others. The "m" suffix denotes just
  2548. patches; the "f" suffix indicates that features were added.
  2549. An IRIX binary built on lower MIPS model (Instruction Set Architecture,
  2550. ISA) can run on higher models, but not vice versa:
  2551. MIPS1 R3000 and below
  2552. MIPS2 R4000
  2553. MIPS3 R4x00
  2554. MIPS4 R5000 and above
  2555. Furthermore, there are different Application Binary Interfaces (ABIs):
  2556. COFF 32 bits, IRIX 5.3, 5.2, 5.1, 4.x and below
  2557. o32 ELF 32 bits, IRIX 5.3, 6.0 - 6.5
  2558. N32 ELF 32 bits, IRIX 6.2 - 6.5
  2559. N64 ELF 64 bits, IRIX 6.2 - 6.5
  2560. Thus a prebuilt IRIX binary works on a particular machine only if (a)
  2561. the machine's IRIX version (to one decimal place) is equal to or
  2562. greater than the version under which the binary was built; (b) the
  2563. machine's MIPS level is greater or equal to that of the binary; and (c)
  2564. the machine supports the ABI of the binary. If all three conditions are
  2565. not satisfied, of course, you can build a binary yourself from source
  2566. code since, unlike some other Unix vendors, SGI does supply a C
  2567. compiler and libraries.
  2568. SGI did not supply an API for hardware flow control prior to IRIX 5.2.
  2569. C-Kermit 6.1 and higher for IRIX 5.2 and higher supports hardware flow
  2570. control in the normal way, via "set flow rts/cts".
  2571. For hardware flow control on earlier IRIX and/or C-Kermit versions, use
  2572. the ttyf* (modem control AND hardware flow control) devices and not the
  2573. ttyd* (direct) or ttym* (modem control but no hardware flow control)
  2574. ones, and obtain the proper "hardware handshaking" cable from SGI,
  2575. which is incompatible with the ones for the Macintosh and NeXT even
  2576. though they look the same ("man serial" for further info) and tell
  2577. Kermit to "set flow keep" and "set modem flow rts/cts".
  2578. Serial speeds higher than 38400 are available in IRIX 6.2 and later, on
  2579. O-class machines (e.g. Origin, Octane) only, and are supported by
  2580. C-Kermit 7.0 and later. Commands such as "set speed 115200" may be
  2581. given on other models (e.g. Iris, Indy, Indigo) but will fail because
  2582. the OS reports an invalid speed for the device.
  2583. Experimentation with both IRIX 5.3 and 6.2 shows that when logged in to
  2584. IRIX via Telnet, that remote-mode C-Kermit can't send files if the
  2585. packet length is greater than 4096; the Telnet server evidently has
  2586. this restriction (or bug), since there is no problem sending long
  2587. packets on serial or rlogin connections. However, it can receive files
  2588. with no problem if the packet length is greater than 4096. As a
  2589. workaround, the FAST macro for IRIX includes "set send packet-length
  2590. 4000". IRIX 6.5.1 does not have this problem, so evidently it was fixed
  2591. some time after IRIX 6.2. Tests show file-transfer speeds are better
  2592. (not worse) with 8K packets than with 4K packets from IRIX 6.5.1.
  2593. Reportedly some Indys have bad serial port hardware. IRIX 5.2, for
  2594. example, needs patch 151 to work around this; or upgrade to a later
  2595. release. Similarly, IRIX 5.2 has several problems with serial i/o, flow
  2596. control, etc. Again, patch or upgrade.
  2597. Reportedly on machines with IRIX 4.0, Kermit cannot be suspended by
  2598. typing the suspend ("swtch") character if it was started from csh, even
  2599. though other programs can be suspended this way, and even though the Z
  2600. and SUSPEND commands still work correctly. This is evidently because
  2601. IRIX's csh does not deliver the SIGTSTP signal to Kermit. The reason
  2602. other programs can be suspended in the same environment is probably
  2603. that they do not trap SIGTSTP themselves, so the shell is doing the
  2604. suspending rather than the application.
  2605. Also see notes about IRIX 3.x in the [510]C-Kermit for Unix
  2606. Installation Instructions.
  2607. If you have problems making TCP/IP connections in versions of IRIX
  2608. built with GCC 2.95.2, see the bugs section of:
  2609. [511]http://freeware.sgi.com/Installable/gcc-2.95.2.html.
  2610. Reportedly, if you allow gcc to compile C-Kermit on Irix you should be
  2611. aware that there might be problems with some of the network code. The
  2612. specifics are at
  2613. [512]http://freeware.sgi.com/Installable/gcc-2.95.2.html; scroll down
  2614. to the "known bugs" section at the end of the document.
  2615. 3.15. C-KERMIT AND THE BEBOX
  2616. [ [513]Top ] [ [514]Contents ] [ [515]Section Contents ] [ [516]Next ]
  2617. [ [517]Previous ]
  2618. See also: The [518]comp.sys.be newsgroup.
  2619. The BeBox has been discontinued and BeOS repositioned for PC platforms.
  2620. The POSIX parts of BeOS are not finished, nor is the sockets library,
  2621. therefore a fully functional version of C-Kermit is not possible. In
  2622. version 6.0 of C-Kermit, written for BeOS DR7, it was possible to:
  2623. * set line /dev/serial2 (and probably the other serial ports)
  2624. * set speed 115200 (and at least some of the lower baud rates)
  2625. * connect
  2626. * set modem type hayes (and likely others, too)
  2627. * dial phone-number
  2628. * set send packet-length 2048 (other lengths for both send and
  2629. receive)
  2630. * set receive packet length 2048
  2631. * set file type binary (text mode works, too) (with remote kermit
  2632. session in server mode)
  2633. * put bedrop.jpg
  2634. * get bedrop.jpg
  2635. * get bedrop.jpg bedrop.jpg2
  2636. * finish, bye
  2637. The following do not work:
  2638. * kermit does not detect modem hangup
  2639. * !/RUN/PUSH [commandline command]
  2640. * Running kermit in remote mode
  2641. * Using other protocols (x/y/zmodem)
  2642. * TCP networking interface (Be's TCP/IP API has a ways to go, still)
  2643. C-Kermit does not work on BeOS DR8 because of changes in the underlying
  2644. APIs. Unfortunately not enough changes were made to allow the regular
  2645. POSIX-based C-Kermit to work either. Note: the lack of a fork() service
  2646. requires the select()-based CONNECT module, but there is no select().
  2647. There is a select() in DR8, but it doesn't work.
  2648. C-Kermit 7.0 was built for BeOS 4.5 and works in remote mode. It does
  2649. not include networking support since the APIs are still not there. It
  2650. is not known if dialing out works, but probably not. Be experts are
  2651. welcome to lend a hand.
  2652. 3.16. C-KERMIT AND DG/UX
  2653. [ [519]Top ] [ [520]Contents ] [ [521]Section Contents ] [ [522]Next ]
  2654. [ [523]Previous ]
  2655. Somebody downloaded the C-Kermit 6.0 binary built under DG/UX 5.40 and
  2656. ran it under DG/UX 5.4R3.10 -- it worked OK except that file dates for
  2657. incoming files were all written as 1 Jan 1970. Cause and cure unknown.
  2658. Workaround: SET ATTRIBUTE DATE OFF. Better: Use a version of C-Kermit
  2659. built under and for DG/UX 5.4R3.10.
  2660. 3.17. C-KERMIT AND SEQUENT DYNIX
  2661. [ [524]Top ] [ [525]Contents ] [ [526]Section Contents ] [ [527]Next ]
  2662. [ [528]Previous ]
  2663. Reportedly, when coming into a Sequent Unix (DYNIX) system through an
  2664. X.25 connection, Kermit doesn't work right because the Sequent's
  2665. FIONREAD ioctl returns incorrect data. To work around, use the
  2666. 1-character-at-a-time version of myread() in ckutio.c (i.e. undefine
  2667. MYREAD in ckutio.c and rebuild the program). This is unsatisfying
  2668. because two versions of the program would be needed -- one for use over
  2669. X.25, and the other for serial and TCP/IP connections.
  2670. 3.18. C-KERMIT AND FREEBSD, OPENBSD, and NETBSD
  2671. [ [529]Top ] [ [530]Contents ] [ [531]Section Contents ] [ [532]Next ]
  2672. [ [533]Previous ]
  2673. Some NebBSD users have reported difficulty escaping back from CONNECT
  2674. mode, usually when running NetBSD on non-PC hardware. Probably a
  2675. keyboard issue.
  2676. NetBSD users have also reported that C-Kermit doesn't pop back to the
  2677. prompt if the modem drops carrier. This needs to be checked out & fixed
  2678. if possible.
  2679. (All the above seems to work properly in C-Kermit 7.0 and later.)
  2680. 3.19. C-KERMIT AND MAC OS X
  2681. [ [534]Top ] [ [535]Contents ] [ [536]Section Contents ] [ [537]Next ]
  2682. [ [538]Previous ]
  2683. Mac OS X is Apple's 4.4BSD Unix variety, closely related to FreeBSD,
  2684. but different. "uname -a" is singularly uninformative, as in Linux,
  2685. giving only the Darwin kernel version number. The way to find out the
  2686. actual Mac OS X version is with
  2687. /usr/bin/sw_vers -productName
  2688. /usr/bin/sw_vers -productVersion
  2689. or:
  2690. fgrep -A 1 'ProductVersion'
  2691. /System/Library/CoreServices/SystemVersion.plist
  2692. Here are some points to be aware of:
  2693. * A big gotcha for Kermit users is that Mac OS X does not support
  2694. serial ports and, as far as I can tell, doesn't support its
  2695. built-in modem either, for anything other than making Internet
  2696. connections. Macintoshes capable of running Mac OS X, such as the
  2697. G5 and later, come without serial ports and without any APIs to
  2698. support them, and also without the UUCP family of programs
  2699. (including cu), nor any standard for serial-port lockfile
  2700. directory.
  2701. * Early versions of Mac OS X came without Curses, Termlib, or
  2702. Terminfo libraries. Later versions seem to have ncurses (it would
  2703. seem that Mac OS X 10.3.9 was the first mature and complete version
  2704. of Mac OS X). Kermit uses curses for its file-transfer display. See
  2705. elsewhere about curses-vs-ncurses confusion.
  2706. * In the HFS+ file system, filenames are case-folded. Thus "makefile"
  2707. and "Makefile" are the same file. So, for example, suppose you are
  2708. sending two distinct files, Foo and FOO, from (say) Linux to Mac OS
  2709. X. This will produce a file collision that will be handled
  2710. according to Mac OS X C-Kermit's FILE COLLISION setting, which by
  2711. default is BACKUP, so the Mac will wind up with files called FOO
  2712. and Foo.~1~.
  2713. * HSF+ files that are composed of a resource fork and a data fork...
  2714. I doubt that C-Kermit does anything useful with them. There is no
  2715. code in C-Kermit for traditional two-forked Macintosh files, but it
  2716. could be added if there is any demand (code for this existed in
  2717. [539]Mac Kermit, the old pre-Mac-OS-X Macintosh version of
  2718. C-Kermit).
  2719. * In case you want to transfer a traditional Macintosh text file (or
  2720. data fork of a file that is plain text), you can use these C-Kermit
  2721. commands:
  2722. set file eol cr
  2723. set file character-set apple-quickdraw
  2724. send /text filename
  2725. * File or pathnames that include spaces must be enclosed in either
  2726. doublequotes or curly braces in C-Kermit commands.
  2727. * Mac OS X can use a third-party package manager called "fink".
  2728. Various fink packages for C-Kermit are floating around that are not
  2729. standard releases. For example, there's a C-Kermit 8.0.201 package
  2730. in which C-Kermit was modified (at least) to use a UUCP lockfile
  2731. directory that does not exist on vanilla Mac OS X systems.
  2732. Mac OS X and Serial Ports
  2733. Apple is in the forefront of companies that believe serial ports have
  2734. no use in the modern world and so has simply eliminated all traces of
  2735. them from its machines and OS. But of course serial ports are still
  2736. needed to connect not only to external modems, but also to the control
  2737. ports of hubs, routers, terminal servers, PBXs, and similar devices,
  2738. not to mention barcode readers, POS systems and components, speaking
  2739. devices, hand calculators such as the HP48, automated factory-floor
  2740. equipment, and scientific, medical, and lab equipment (to name a few).
  2741. Among workers in these areas, there is a need to add serial ports back
  2742. onto this platform, which is being filled by third-party products such
  2743. as the [540]Keyspan High Speed USB Serial Adapter USA-19HS, which has a
  2744. DB-9 male connector. To use the Keyspan device, you must install the
  2745. accompanying device drivers, which winds up giving you serial ports
  2746. with names like /dev/cu.USA19H3b1P1.1, /dev/cu.KeySerial1,
  2747. /dev/tty.KeySerial1.
  2748. C-Kermit 9.0 works "out of the box" with third-party serial ports on
  2749. Mac OS X, because it is built by default ("make macosx") without the
  2750. "UUCP lockfile" feature. If you have C-Kermit 9.0 on a personal
  2751. Macintosh, you can skip the next section.
  2752. Mac OS X Serial Ports with C-Kermit 8.0 and earlier
  2753. In earlier versions of C-Kermit, you'll need to either build a special
  2754. -DNOUUCP version, or deal with the UUCP port contention sytem in
  2755. [541]all its glory (this is usually an exercise in futility because any
  2756. other applications on your Mac that use the serial port will not
  2757. necessarily follow the same conventions):
  2758. 1. su (or sudo -s)
  2759. chgrp xxxx /var/spool/lock
  2760. chmod g+w /var/spool/lock
  2761. chgrp xxxx /dev/cu.*
  2762. (where xxxx is the name of the group for users to whom serial-port
  2763. access is to be granted). Use "admin" or other existing group, or
  2764. create a new group if desired. NB:
  2765. In the absence of official guidance from Apple or anyone else, we
  2766. choose /var/spool/lock as the lockfile directory because this
  2767. directory (a) already exists on vanilla Mac OS X installations, and
  2768. (b) it is the directory used for serial-port lockfiles on many other
  2769. platforms.
  2770. 2. Put all users who need access to the serial port in the same group.
  2771. 3. Make sure the serial device files that are to be used by C-Kermit
  2772. have group read-write permission and (if you care) lack world
  2773. read-write permission, e.g.:
  2774. chmod g+rw,o-rw /dev/cu.*
  2775. If you do the above, then there's no need to become root to use Kermit,
  2776. or to make Kermit suid or sgid. Just do this:
  2777. chmod 775 wermit
  2778. mv wermit /usr/local/kermit
  2779. (or whatever spot is more appropriate, e.g. /usr/bin/). For greater
  2780. detail about installation, [542]CLICK HERE.
  2781. Alternatively, to build a pre-9.0 version of C-Kermit without UUCP
  2782. lockfile support, set the NOUUCP flag; e.g. (for Mac OS 10.4):
  2783. make macosx10.4 KFLAGS=-DNOUUCP
  2784. This circumvents the SET PORT failure "?Access to lockfile directory
  2785. denied". But it also sacrifices Kermit's ability to ensure that only
  2786. one copy of Kermit can have the device open at a time, since Mac OS X
  2787. is the same as all other varieties of Unix in that exclusive access to
  2788. serial ports is not enforced in any way. But if it's for your own
  2789. desktop machine that nobody else uses, a -DNOUUCP version might be
  2790. adequate and preferable to the alternatives.
  2791. To build C-Kermit 9.0 with UUCP support, do:
  2792. make macosx KFLAGS=-UNOUUCP
  2793. (note: "-U", not "-D).
  2794. RS-232 versus RS-422
  2795. Meanwhile, back when Macs had serial ports, they were not RS-232 (the
  2796. standard for connecting computers with nearby modems) but rather RS-422
  2797. or -423 (a standard for connecting serial devices over longer
  2798. distances). Macintosh serial ports do not support modems well because
  2799. they do not have enough wires (or more properly in the case RS-422/423,
  2800. wire pairs) to convey a useful subset of modem signals.
  2801. Keyspan also sells a [543]USB Twin Serial Adapter that gives you two
  2802. Mini-Din8 RS-422 ports, that are no better (or worse) for communicating
  2803. with modems or serial devices than a real Mac Din-8 port was. In
  2804. essence, you get Data In, Data Out, and two modem signals. It looks to
  2805. me as if the signals chosen by Keyspan are RTS and CTS. This gives you
  2806. hardware flow control, but at the expense of Carrier Detect. Thus to
  2807. use C-Kermit with a Keyspan USB serial port, you must tell C-Kermit to:
  2808. set modem type none ; (don't expect a modem)
  2809. set carrier-watch off ; (ignore carrier signal)
  2810. set port /dev/cu.USA19H3b1P1.1 ; (open the port)
  2811. set flow rts/cts ; (this is the default)
  2812. set speed 57600 ; (or whatever)
  2813. connect ; (or DIAL or whatever)
  2814. Use Ctrl-\C in the normal manner to escape back to the C-Kermit>
  2815. prompt. Kermit can't pop back to its prompt automatically when Carrier
  2816. drops because there is no Carrier signal in the physical interface.
  2817. Here's a typical sequence for connecting to Cisco devices (using a
  2818. mixture of command-line options and interactive commands at the
  2819. prompt):
  2820. $ ckermit -l /dev/cu.USA19H3b1P1.1 -b 9600
  2821. C-Kermit> set carrier-watch off
  2822. C-Kermit> connect
  2823. Instructions for the built-in modem (if any) remain to be written due
  2824. to lack of knowledge. If you can contribute instructions, hints, or
  2825. tips, please [544]send them in.
  2826. 3.20. C-KERMIT AND COHERENT
  2827. [ [545]Top ] [ [546]Contents ] [ [547]Section Contents ] [
  2828. [548]Previous ]
  2829. Also see:
  2830. [549]http://www.uni-giessen.de/faq/archiv/coherent-faq.general/msg000
  2831. 00.html
  2832. Mark Williams COHERENT was perhaps the first commercial Unix-based
  2833. operating system for PCs, first appearing about 1983 or -84 for the
  2834. PC/XT (?), and popular until about 1993, when Linux took over.
  2835. C-Kermit, as of version 8.0, is still current for COHERENT 386 4.2
  2836. (i.e. only for i386 and above). Curses is included, but lots of other
  2837. features are omitted due to lack of the appropriate OS features, APIs,
  2838. libraries, hardware, or just space: e.g. TCP/IP, floating-point
  2839. arithmetic, learned scripts. Earlier versions of COHERENT ran on 8086
  2840. and 80286, but these are to small to build or run C-Kermit, but
  2841. G-Kermit should be OK (as might be ancient versions of C-Kermit).
  2842. You can actually build a version with floating point support -- just
  2843. take -DNOFLOAT out of CFLAGS and add -lm to LIBS; NOFLOAT is the
  2844. default because COHERENT tends to run on old PCs that don't have
  2845. floating-point hardware. You can also add "-f" to CFLAGS to have it
  2846. link in the floating-point emulation library. Also I'm not sure why
  2847. -DNOLEARN is included, since it depends on select(), which COHERENT
  2848. has.
  2849. 4. GENERAL UNIX-SPECIFIC HINTS, LIMITATIONS, AND BUGS
  2850. [ [550]Top ] [ [551]Contents ] [ [552]Next ] [ [553]Previous ]
  2851. 4.1. Modem Signals
  2852. There seems to be an escalating demand for the ability to control "dumb
  2853. serial devices" (such as "smartcard readers", barcode readers, etc) by
  2854. explicitly manipulating modem signals, particularly RTS. This might
  2855. have been easy to do in DOS, where there is no operating system
  2856. standing between the application and the serial device, but it is
  2857. problematic in Unix, where modem signals are controlled by the serial
  2858. device driver. If the driver does not provide an API for doing this,
  2859. then the application can't do it. If it does provide an API, expect it
  2860. to be totally different on each Unix platform, since there is no
  2861. standard for this.
  2862. 4.2. NFS Troubles
  2863. Beginning with C-Kermit 6.0, the default C-Kermit prompt includes your
  2864. current (working) directory; for example:
  2865. [/usr/olga] C-Kermit>
  2866. (In C-Kermit 7.0 the square braces were replaced by round parentheses
  2867. to avoid conflicts with ISO 646 national character sets.)
  2868. If that directory is on an NFS-mounted disk, and NFS stops working or
  2869. the disk becomes unavailable, C-Kermit will hang waiting for NFS and/or
  2870. the disk to come back. Whether you can interrupt C-Kermit when it is
  2871. hung this way depends on the specific OS. Kermit has called the
  2872. operating systems's getcwd() function, and is waiting for it to return.
  2873. Some versions of Unix (e.g. HP-UX 9.x) allow this function to be
  2874. interrupted with SIGINT (Ctrl-C), others (such as HP-UX 8.x) do not. To
  2875. avoid this effect, you can always use SET PROMPT to change your prompt
  2876. to something that does not involve calling getcwd(), but if NFS is not
  2877. responding, C-Kermit will still hang any time you give a command that
  2878. refers to an NFS-mounted directory. Also note that in some cases, the
  2879. uninterruptibility of NFS-dependent system or library calls is
  2880. considered a bug, and sometimes there are patches. For HP-UX, for
  2881. example:
  2882. replaced by:
  2883. HP-UX 10.20 libc PHCO_8764 PHCO_14891/PHCO_16723
  2884. HP-UX 10.10 libc PHCO_8763 PHCO_14254/PHCO_16722
  2885. HP-UX 9.x libc PHCO_7747 S700 PHCO_13095
  2886. HP-UX 9.x libc PHCO_6779 S800 PHCO_11162
  2887. 4.3. C-Kermit as Login Shell
  2888. You might have reason to make C-Kermit the login shell for a specific
  2889. user, by entering the pathname of Kermit (possibly with command-line
  2890. switches, such as -x to put it in server mode) into the shell field of
  2891. the /etc/passwd file. This works pretty well. In some cases, for
  2892. "ultimate security", you might want to use a version built with
  2893. -DNOPUSH (see the [554]Configurations Options document for this, but
  2894. even if you don't, then PUSHing or shelling out from C-Kermit just
  2895. brings up a new copy of C-Kermit (but warning: this does not prevent
  2896. the user from explicitly running a shell; e.g. "run /bin/sh"; use
  2897. NOPUSH to prevent this).
  2898. 4.4. C-Kermit versus screen and splitvt
  2899. C-Kermit file transfers will probably not work if attempted through the
  2900. "splitvt" or GNU "screen" programs because the screen optimization (or
  2901. at least, line wrapping, control-character absorption) done by this
  2902. package interferes with Kermit's packets.
  2903. The same can apply to any other environment in which the user's session
  2904. is captured, monitored, recorded, or manipulated. Examples include the
  2905. 'script' program (for making a typescript of a session), the
  2906. Computronics PEEK package and pksh (at least versions of it prior to
  2907. 1.9K), and so on.
  2908. You might try the following -- what we call "doomsday Kermit" --
  2909. settings to push packets through even the densest and most obstructive
  2910. connections, such as "screen" and "splitvt" (and certain kinds of 3270
  2911. protocol emulators): Give these commands to BOTH Kermit programs:
  2912. SET FLOW NONE
  2913. SET CONTROL PREFIX ALL
  2914. SET RECEIVE PACKET-LENGTH 70
  2915. SET RECEIVE START 62
  2916. SET SEND START 62
  2917. SET SEND PAUSE 100
  2918. SET BLOCK B
  2919. If it works, it will be slow.
  2920. 4.5. C-Kermit versus DOS Emulators
  2921. On Unix workstations equipped with DOS emulators like SoftPC, watch out
  2922. for what these emulators do to the serial port drivers. After using a
  2923. DOS emulator, particularly if you use it to run DOS communications
  2924. software, you might have to reconfigure the serial ports for use by
  2925. Unix.
  2926. 4.6. C-Kermit versus Job Control
  2927. Interruption by Ctrl-Z makes Unix C-Kermit try to suspend itself with
  2928. kill(0,SIGTSTP), but only on platforms that support job control, as
  2929. determined by whether the symbol SIGTSTP is defined (or on POSIX or
  2930. SVR4 systems, if syconf(_SC_JOB_CONTROL) or _POSIX_JOB_CONTROL in
  2931. addition to SIGTSTP). However, if Kermit is running under a login shell
  2932. (such as the original Bourne shell) that does not support job control,
  2933. the user's session hangs and must be logged out from another terminal,
  2934. or hung up on. There is no way Kermit can defend itself against this.
  2935. If you use a non-job control shell on a computer that supports job
  2936. control, give a command like "stty susp undef" to fix it so the suspend
  2937. signal is not attached to any particular key, or give the command SET
  2938. SUSPEND OFF to C-Kermit, or build C-Kermit with -DNOJC.
  2939. 4.7. Dates and Times
  2940. Unix time conversion functions typically apply locale rules to return
  2941. local time in terms of any seasonal time zone change in effect for the
  2942. given date. The diffdate function assumes that the same timezone rules
  2943. are in effect for both dates, but a date with timezone information will
  2944. be converted to the local time zone in effect at the given time, e.g.,
  2945. a GMT specification will produce either a Standard Time or Daylight
  2946. Savings Time, depending on which applies at the given time. An example
  2947. using the 2001 seasonal change from EDT (-0400) to EST (-0500):
  2948. C-Kermit> DATE 20011028 05:01:02 GMT ; EDT
  2949. 20011028 01:01:02
  2950. C-Kermit> DATE 20011028 06:01:02 GMT ; EST
  2951. 20011028 01:01:02
  2952. C-Kermit>
  2953. but the implicit change in timezone offset is not recognized:
  2954. C-Kermit> echo \fdiffdate(20011028 05:01:02 GMT, 20011028 06:01:02 GMT)
  2955. +0:00
  2956. C-Kermit>
  2957. Date/time arithmetic, offsets, delta times, and timezone support are
  2958. new to C-Kermit 8.0, and might be expected to evolve and improve in
  2959. subsequent releases.
  2960. On some platforms, files downloaded with HTTP receive the current
  2961. timestamp, rather than the HTTP "Last Modified" time (this can be fixed
  2962. by including utime.h, e.g. in SunOS and Tru64...).
  2963. 4.8. Pseudoterminals
  2964. The SSH and PTY commands work by assigning a pseudoterminal and reading
  2965. and writing from it. Performance varies according to the specific
  2966. platform ranging from very fast to very flow.
  2967. SSH and PTY commands can fail if (a) all pseudoterminals are in use; or
  2968. (b) you do not have read/write access to the pseudoterminal that was
  2969. assigned. An example of (b) was reported with the Zipslack Slackware
  2970. Linux distribution, in which the pseudoterminals were created with
  2971. crw-r--r-- permission, instead of crw-rw-rw-.
  2972. 4.9. Miscellaneous
  2973. * Reportedly, the Unix C-Kermit server, under some conditions, on
  2974. certain particular systems, fails to log out its login session upon
  2975. receipt of a BYE command. Before relying on the BYE command
  2976. working, test it a few times to make sure it works on your system:
  2977. there might be system configuration or security mechanisms to
  2978. prevent an inferior process (like Kermit) from killing a superior
  2979. one (like the login shell).
  2980. * On AT&T 7300 (3B1) machines, you might have to "stty nl1" before
  2981. starting C-Kermit. Do this if characters are lost during
  2982. communications operations.
  2983. * Under the bash shell (versions prior to 1.07 from CWRU), "pushing"
  2984. to an inferior shell and then exiting back to Kermit leaves Kermit
  2985. in the background such that it must be explicitly fg'd. This is
  2986. reportedly fixed in version 1.07 of bash (and definitely in modern
  2987. bash versions).
  2988. 5. INITIALIZATION AND COMMAND FILES
  2989. [ [555]Top ] [ [556]Contents ] [ [557]Next ] [ [558]Previous ]
  2990. C-Kermit's initialization file for Unix is .kermrc (lowercase, starts
  2991. with period) in your home directory, unless Kermit was built with the
  2992. system-wide initialization-file option (see the [559]C-Kermit for Unix
  2993. Installation Instructions).
  2994. C-Kermit identifies your home directory based on the environment
  2995. variable, HOME. Most Unix systems set this variable automatically when
  2996. you log in. If C-Kermit can't find your initialization file, check your
  2997. HOME variable:
  2998. echo $HOME (at the Unix prompt)
  2999. or:
  3000. echo \$(HOME) (at the C-Kermit prompt)
  3001. If HOME is not defined, or is defined incorrectly, add the appropriate
  3002. definition to your Unix .profile or .login file, depending on your
  3003. shell:
  3004. setenv HOME full-pathname-of-your-home-directory (C-Shell, .login file)
  3005. or:
  3006. HOME=full-pathname-of-your-home-directory (sh, ksh, .profile file)
  3007. export HOME
  3008. NOTE: Various other operations depend on the correct definition of
  3009. HOME. These include the "tilde-expansion" feature, which allows you to
  3010. refer to your home directory as "~" in filenames used in C-Kermit
  3011. commands, e.g.:
  3012. send ~/.kermrc
  3013. as well as the \v(home) variable.
  3014. Prior to version 5A(190), C-Kermit would look for its initialization
  3015. file in the current directory if it was not found in the home
  3016. directory. This feature was removed from 5A(190) because it was a
  3017. security risk. Some people, however, liked this behavior and had
  3018. .kermrc files in all their directories that would set up things
  3019. appropriately for the files therein. If you want this behavior, you can
  3020. accomplish it in various ways, for example:
  3021. * Create a shell alias, for example:
  3022. alias kd="kermit -Y ./.kermrc"
  3023. * Create a .kermrc file in your home directory, whose contents are:
  3024. take ./.kermrc
  3025. Suppose you need to pass a password from the Unix command line to a
  3026. C-Kermit script program, in such a way that it does not show up in "ps"
  3027. or "w" listings. Here is a method (not guaranteed to be 100% secure,
  3028. but definitely more secure than the more obvious methods):
  3029. echo mypassword | kermit myscript
  3030. The "myscript" file contains all the commands that need to be executed
  3031. during the Kermit session, up to and including EXIT, and also includes
  3032. an ASK or ASKQ command to read the password from standard input, which
  3033. has been piped in from the Unix 'echo' command, but it must not include
  3034. a CONNECT command. Only "kermit myscript" shows up in the ps listing.
  3035. 6. COMMUNICATION SPEED SELECTION
  3036. [ [560]Top ] [ [561]Contents ] [ [562]Next ] [ [563]Previous ]
  3037. Version-7 based Unix implementations, including 4.3 BSD and earlier and
  3038. Unix systems based upon BSD, use a 4-bit field to record a serial
  3039. device's terminal speed. This leaves room for 16 speeds, of which the
  3040. first 14 are normally:
  3041. 0, 50, 75, 110, 134.5, 150, 200, 300, 600, 1200, 1800, 2400, 4800,
  3042. and 9600
  3043. The remaining two are usually called EXTA and EXTB, and are defined by
  3044. the particular Unix implementation. C-Kermit determines which speeds
  3045. are available on your system based on whether symbols for them are
  3046. defined in your terminal device header files. EXTA is generally assumed
  3047. to be 19200 and EXTB 38400, but these assumptions might be wrong, or
  3048. they might not apply to a particular device that does not support these
  3049. speeds. Presumably, if you try to set a speed that is not legal on a
  3050. particular device, the driver will return an error, but this can not be
  3051. guaranteed.
  3052. On these systems, it is usually not possible to select a speed of 14400
  3053. bps for use with V.32bis modems. In that case, use 19200 or 38400 bps,
  3054. configure your modem to lock its interface speed and to use RTS/CTS
  3055. flow control, and tell C-Kermit to SET FLOW RTS/CTS and SET DIAL
  3056. SPEED-MATCHING OFF.
  3057. The situation is similar, but different, in System V. SVID Third
  3058. Edition lists the same speeds, 0 through 38400.
  3059. Some versions of Unix, and/or terminal device drivers that come with
  3060. certain third-party add-in high-speed serial communication interfaces,
  3061. use the low "baud rates" to stand for higher ones. For example, SET
  3062. SPEED 50 gets you 57600 bps; SET SPEED 75 gets you 76800; SET SPEED 110
  3063. gets 115200.
  3064. SCO ODT 3.0 is an example where a "baud-rate-table patch" can be
  3065. applied that can rotate the tty driver baud rate table such that
  3066. 600=57600 and 1800=115k baud. Similarly for Digiboard
  3067. multiport/portservers, which have a "fastbaud" setting that does this.
  3068. Linux has a "setserial" command that can do it, etc.
  3069. More modern Unixes support POSIX-based speed setting, in which the
  3070. selection of speeds is not limited by a 4-bit field. C-Kermit 6.1
  3071. incorporates a new mechanism for finding out (at compile time) which
  3072. serial speeds are supported by the operating system that does not
  3073. involve editing of source code by hand; on systems like Solaris 5.1,
  3074. IRIX 6.2, and SCO OSR5.0.4, "set speed ?" will list speeds up to 460800
  3075. or 921600. In C-Kermit 7.0 and later:
  3076. 1. If a symbol for a particular speed (say B230400 for 230400 bps)
  3077. appears in whatever header file defines acceptable serial speeds
  3078. (e.g. <termbits.h> or <sys/termios.h> or <sys/ttydev.h>, etc), the
  3079. corresponding speed will appear in C-Kermit's "set speed ?" list.
  3080. 2. The fact that a given speed is listed in the header files and
  3081. appears in C-Kermit's list does not mean the driver will accept it.
  3082. For example, a computer might have some standard serial ports plus
  3083. some add-on ones with different drivers that accept a different
  3084. repertoire of speeds.
  3085. 3. The fact that a given speed is accepted by the driver does not
  3086. guarantee the underlying hardware can accept it.
  3087. When Kermit is given a "set speed" command for a particular device, the
  3088. underlying system service is called to set the speed; its return code
  3089. is checked and the SET SPEED command fails if the return code indicates
  3090. failure. Regardless of the system service return status, the device's
  3091. speed is then read back and if it does not match the speed that was
  3092. requested, an error message is printed and the command fails.
  3093. Even when the command succeeds, this does not guarantee successful
  3094. operation at a particular speed, especially a high one. That depends on
  3095. electricity, information theory, etc. How long is the cable, what is
  3096. its capacitance, how well is it shielded, etc, not to mention that
  3097. every connection has two ends and its success depends on both of them.
  3098. (With the obvious caveats about internal modems, is the cable really
  3099. connected, interrupt conflicts, etc etc etc).
  3100. Note, in particular, that there is a certain threshold above which
  3101. modems can not "autobaud" -- i.e. detect the serial interface speed
  3102. when you type AT (or whatever else the modem's recognition sequence
  3103. might be). Such modems need to be engaged at a lower speed (say 2400 or
  3104. 9600 or even 115200 -- any speed below their autobaud threshold) and
  3105. then must be given a modem-specific command (which can be found in the
  3106. modem manual) to change their interface speed to the desired higher
  3107. speed, and then the software must also be told to change to the new,
  3108. higher speed.
  3109. For additional information, read [564]Section 9.5 of the Installation
  3110. Instructions, plus any platform-specific notes in [565]Section 3 above.
  3111. 7. COMMUNICATIONS AND DIALING
  3112. [ [566]Top ] [ [567]Contents ] [ [568]Next ] [ [569]Previous ]
  3113. 7.1. Serial Ports and Modems
  3114. If you SET LINE to a serial port modem-control device that has nothing
  3115. plugged in to it, or has a modem connected that is powered off, and you
  3116. have not given a prior SET MODEM TYPE or SET CARRIER-WATCH OFF command,
  3117. the SET LINE command is likely to hang. In most cases, you can Ctrl-C
  3118. out. If not, you'll have to kill C-Kermit from another terminal.
  3119. Similarly, if you give a SET MODEM TYPE HAYES (or USR, or any other
  3120. modem type besides DIRECT, NONE, or UNKNOWN) and then SET LINE to an
  3121. empty port, the subsequent close (implicit or explicit) is liable to
  3122. hang or even crash (through no fault of Kermit's -- the hanging or
  3123. crashing is inside a system call such as cfsetospeed() or close()).
  3124. The SET CARRIER-WATCH command works as advertised only if the
  3125. underlying operating system and device drivers support this feature; in
  3126. particular only if a read() operation returns immediately with an error
  3127. code if the carrier signal goes away or, failing that, if C-Kermit can
  3128. obtain the modem signals from the device driver (you can tell by giving
  3129. a "set line" command to a serial device, and then a "show
  3130. communications" command -- if modem signals are not listed, C-Kermit
  3131. won't be able to detect carrier loss, the WAIT command will not work,
  3132. etc). Of course, the device itself (e.g. modem) must be configured
  3133. appropriately and the cables convey the carrier and other needed
  3134. signals, etc.
  3135. If you dial out from Unix system, but then notice a lot of weird
  3136. character strings being stuck into your session at random times
  3137. (especially if they look like +++ATQ0H0 or login banners or prompts),
  3138. that means that getty is also trying to control the same device. You'll
  3139. need to dial out on a device that is not waiting for a login, or else
  3140. disable getty on the device.
  3141. As of version 7.0, C-Kermit makes explicit checks for the Carrier
  3142. Detect signal, and so catches hung-up connections much better than 6.0
  3143. and earlier. However, it still can not be guaranteed to catch every
  3144. ever CD on-to-off transition. For example, when the HP-UX version of
  3145. C-Kermit is in CONNECT mode on a dialed connection and CARRIER-WATCH ON
  3146. or AUTO, and you turn off the modem, HP-UX is stuck in a read() that
  3147. never returns. (C-Kermit does not pop back to its prompt automatically,
  3148. but you can still escape back.)
  3149. If, on the other hand, you log out from the remote system, and it hangs
  3150. up, and CD drops on the local modem, C-Kermit detects this and pops
  3151. back to the prompt as it should. (Evidently there can be a difference
  3152. between CD and DSR turning off at the same time, versus CD turning off
  3153. while DSR stays on; experimentation with &S0/&S1/&S2 on your modem
  3154. might produce the desired results).
  3155. When Unix C-Kermit exits, it closes (and must close) the communications
  3156. device. If you were dialed out, this will most likely hang up the
  3157. connection. If you want to get out of Kermit and still use Kermit's
  3158. communication device, you have several choices:
  3159. 1. Shell out from Kermit or suspend Kermit, and refer to the device
  3160. literally (as in "term -blah -blah < /dev/cua > /dev/cua").
  3161. 2. Shell out from Kermit and use the device's file descriptor which
  3162. Kermit makes available to you in the \v(ttyfd) variable.
  3163. 3. Use C-Kermit's REDIRECT command.
  3164. 4. Use C-Kermit new EXEC /REDIRECT command.
  3165. If you are having trouble dialing:
  3166. 1. Make sure the dialout line is configured correctly. More about this
  3167. below.
  3168. 2. Make sure all necessary patches are installed for your operating
  3169. system.
  3170. 3. If you can't dial on a "bidirectional" line, then configure it for
  3171. outbound-only (remove the getty) and try again. (The mechanisms --
  3172. if any -- for grabbing bidirectional lines for dialout vary wildly
  3173. among Unix implementations and releases, and C-Kermit -- which runs
  3174. on well over 300 different Unix variations -- makes no effort to
  3175. keep up with them; the recommended method for coping with this
  3176. situation is to wrap C-Kermit in a shell script that takes the
  3177. appropriate actions.)
  3178. 4. Make sure C-Kermit's SET DIAL and SET MODEM parameters agree with
  3179. the modem you are actually using -- pay particular attention to SET
  3180. DIAL SPEED-MATCHING.
  3181. 5. If MODEM HANGUP-METHOD is set to RS232-SIGNAL, change it to
  3182. MODEM-COMMAND. Or vice-versa.
  3183. 6. Try SET DIAL HANGUP OFF before the DIAL command. Also, SET DIAL
  3184. DISPLAY ON to watch what's happening. See [570]Section 8 of the
  3185. [571]Installation Instructions.
  3186. 7. Read pages 50-67 of [572]Using C-Kermit.
  3187. 8. As a last resort, don't use the DIAL command at all; SET CARRIER
  3188. OFF and CONNECT to the modem and dial interactively, or write a
  3189. script program to dial the modem.
  3190. Make sure your dialout line is correctly configured for dialing out (as
  3191. opposed to login). The method for doing this is different for each kind
  3192. of Unix system. Consult your system documentation for configuring lines
  3193. for dialing out (for example, Sun SparcStation IPC users should read
  3194. the section "Setting up Modem Software" in the Desktop SPARC Sun System
  3195. & Network Manager's Guide; HP-9000 workstation users should consult the
  3196. manual Configuring HP-UX for Peripherals, etc).
  3197. Symptom: DIAL works, but a subsequent CONNECT command does not.
  3198. Diagnosis: the modem is not asserting Carrier Detect (CD) after the
  3199. connection is made, or the cable does not convey the CD signal. Cure:
  3200. Reconfigure the modem, replace the cable. Workaround: SET CARRIER OFF
  3201. (at least in System-V based Unix versions).
  3202. For Berkeley-Unix-based systems (4.3BSD and earlier), Kermit includes
  3203. code to use LPASS8 mode when parity is none, which is supposed to allow
  3204. 8-bit data and Xon/Xoff flow control at the same time. However, as of
  3205. edit 174, this code is entirely disabled because it is unreliable: even
  3206. though the host operating system might (or might not) support LPASS8
  3207. mode correctly, the host access protocols (terminal servers, telnet,
  3208. rlogin, etc) generally have no way of finding out about it and
  3209. therefore render it ineffective, causing file transfer failures. So as
  3210. of edit 174, Kermit once again uses rawmode for 8-bit data, and so
  3211. there is no Xon/Xoff flow control during file transfer or terminal
  3212. emulation in the Berkeley-based versions (4.3 and earlier, not 4.4).
  3213. Also on Berkeley-based systems (4.3 and earlier), there is apparently
  3214. no way to configure a dialout line for proper carrier handling, i.e.
  3215. ignore carrier during dialing, require carrier thereafter, get a fatal
  3216. error on any attempt to read from the device after carrier drops (this
  3217. is handled nicely in System V by manipulation of the CLOCAL flag). The
  3218. symptom is that carrier loss does not make C-Kermit pop back to the
  3219. prompt automatically. This is evident on the NeXT, for example, but not
  3220. on SunOS, which supports the CLOCAL flag. This is not a Kermit problem,
  3221. but a limitation of the underlying operating system. For example, the
  3222. cu program on the NeXT doesn't notice carrier loss either, whereas cu
  3223. on the Sun does.
  3224. On certain AT&T Unix systems equipped with AT&T modems, DIAL and HANGUP
  3225. don't work right. Workarounds: (1) SET DIAL HANGUP OFF before
  3226. attempting to dial; (2) If HANGUP doesn't work, SET LINE, and then SET
  3227. LINE <device> to totally close and reopen the device. If all else
  3228. fails, SET CARRIER OFF.
  3229. C-Kermit does not contain any particular support for AT&T DataKit
  3230. devices. You can use Kermit software to dial in to a DataKit line, but
  3231. C-Kermit does not contain the specialized code required to dial out
  3232. from a DataKit line. If the Unix system is connected to DataKit via
  3233. serial ports, dialout should work normally (e.g. set line /dev/ttym1,
  3234. set speed 19200, connect, and then see the DESTINATION: prompt, from
  3235. which you can connect to another computer on the DataKit network or to
  3236. an outgoing modem pool, etc). But if the Unix system is connected to
  3237. the DataKit network through the special DataKit interface board, then
  3238. SET LINE to a DataKit pseudodevice (such as /dev/dk031t) will not work
  3239. (you must use the DataKit "dk" or "dkcu" program instead). In C-Kermit
  3240. 7.0 and later, you can make Kermit connections "though" dk or dkcu
  3241. using "set line /pty".
  3242. In some BSD-based Unix C-Kermit versions, SET LINE to a port that has
  3243. nothing plugged in to it with SET CARRIER ON will hang the program (as
  3244. it should), but it can't be interrupted with Ctrl-C. The interrupt trap
  3245. is correctly armed, but apparently the Unix open() call cannot be
  3246. interrupted in this case. When SET CARRIER is OFF or AUTO, the SET LINE
  3247. will eventually return, but then the program hangs (uninterruptibly)
  3248. when the EXIT or QUIT command (or, presumably, another SET LINE
  3249. command) is given. The latter is probably because of the attempt to
  3250. hang up the modem. (In edit 169, a timeout alarm was placed around this
  3251. operation.)
  3252. With SET DIAL HANGUP OFF in effect, the DIAL command might work only
  3253. once, but not again on the same device. In that case, give a CLOSE
  3254. command to close the device, and then another SET LINE command to
  3255. re-open the same device. Or rebuild your version of Kermit with the
  3256. -DCLSOPN compile-time switch.
  3257. The DIAL command says "To cancel: Type your interrupt character
  3258. (normally Ctrl-C)." This is just one example of where program messages
  3259. and documentation assume your interrupt character is Ctrl-C. But it
  3260. might be something else. In most (but not necessarily all) cases, the
  3261. character referred to is the one that generates the SIGINT signal. If
  3262. Ctrl-C doesn't act as an interrupt character for you, type the Unix
  3263. command "stty -a" or "stty all" or "stty everything" to see what your
  3264. interrupt character is. (Kermit could be made to find out what the
  3265. interrupt character is, but this would require a lot of
  3266. platform-dependent coding and #ifdefs, and a new routine and interface
  3267. between the platform-dependent and platform-independent parts of the
  3268. program.)
  3269. In general, the hangup operation on a serial communication device is
  3270. prone to failure. C-Kermit tries to support many, many different kinds
  3271. of computers, and there seems to be no portable method for hanging up a
  3272. modem connection (i.e. turning off the RS-232 DTR signal and then
  3273. turning it back on again). If HANGUP, DIAL, and/or Ctrl-\H do not work
  3274. for you, and you are a programmer, look at the tthang() function in
  3275. ckutio.c and see if you can add code to make it work correctly for your
  3276. system, and send the code to the address above. (NOTE: This problem has
  3277. been largely sidestepped as of edit 188, in which Kermit first attempts
  3278. to hang up the modem by "escaping back" via +++ and then giving the
  3279. modem's hangup command, e.g. ATH0, when DIAL MODEM-HANGUP is ON, which
  3280. is the default setting.)
  3281. Even when Kermit's modem-control software is configured correctly for
  3282. your computer, it can only work right if your modem is also configured
  3283. to assert the CD signal when it is connected to the remote modem and to
  3284. hang up the connection when your computer drops the DTR signal. So
  3285. before deciding Kermit doesn't work with your modem, check your modem
  3286. configuration AND the cable (if any) connecting your modem to the
  3287. computer -- it should be a straight-through [573]modem cable conducting
  3288. the signals FG, SG, TD, RD, RTS, CTS, DSR, DTR, CD, and RI.
  3289. Many Unix systems keep aliases for dialout devices; for example,
  3290. /dev/acu might be an alias for /dev/tty00. But most of these Unix
  3291. systems also use UUCP lockfile conventions that do not take this
  3292. aliasing into account, so if one user assigns (e.g.) /dev/acu, then
  3293. another user can still assign the same device by referring to its other
  3294. name. This is not a Kermit problem -- Kermit must follow the lockfile
  3295. conventions used by the vendor-supplied software (cu, tip, uucp).
  3296. The SET FLOW-CONTROL KEEP option should be given *before* any
  3297. communication (dialing, terminal emulation, file transfer,
  3298. INPUT/OUTPUT/TRANSMIT, etc) is attempted, if you want C-Kermit to use
  3299. all of the device's preexisting flow-control related settings. The
  3300. default flow-control setting is XON/XOFF, and it will take effect when
  3301. the first communication-related command is given, and a subsequent SET
  3302. FLOW KEEP command will not necessarily know how to restore *all* of the
  3303. device's original flow-control settings.
  3304. 7.2. Network Connections
  3305. C-Kermit tries to use the 8th bit for data when parity is NONE, and
  3306. this generally works on real Unix terminal (tty) devices, but it often
  3307. does not work when the Unix system is accessed over a network via
  3308. telnet or rlogin protocols, including (in many cases) through terminal
  3309. servers. For example, an Encore computer with Annex terminal servers
  3310. only gives a 7-bit path if the rlogin protocol is selected in the
  3311. terminal server but it gives the full 8 bits if the proprietary RDP
  3312. protocol is used.
  3313. If file transfer does not work through a host to which you have
  3314. rlogin'd, use "rlogin -8" rather than "rlogin". If that doesn't work,
  3315. tell both Kermit programs to "set parity space".
  3316. The Encore TELNET server does not allow long bursts of input. When you
  3317. have a TELNET connection to an Encore, tell C-Kermit on the Encore to
  3318. SET RECEIVE PACKET-LENGTH 200 or thereabouts.
  3319. 8. HARDWARE FLOW CONTROL
  3320. [ [574]Top ] [ [575]Contents ] [ [576]Next ] [ [577]Previous ]
  3321. SET FLOW RTS/CTS is available in Unix C-Kermit only when the underlying
  3322. operating system provides an Application Program Interface (API) for
  3323. turning this feature on and off under program control, which turns out
  3324. to be a rather rare feature among Unix systems. To see if your Unix
  3325. C-Kermit version supports hardware flow control, type "set flow ?" at
  3326. the C-Kermit prompt, and look for "rts/cts" among the options. Other
  3327. common situations include:
  3328. 1. The API is available, so "set flow rts/cts" appears as a valid
  3329. C-Kermit command, but it doesn't do anything because the device
  3330. driver (part of the operating system) was never coded to do
  3331. hardware flow control. This is common among System V R4
  3332. implementations (details below).
  3333. 2. The API is not available, so "set flow rts/cts" does NOT appear as
  3334. a valid C-Kermit command, but you can still get RTS/CTS flow
  3335. control by selecting a specially named device in your SET LINE
  3336. command. Examples:
  3337. + NeXTSTEP: /dev/cufa instead of /dev/cua, /dev/cufb instead of
  3338. /dev/cub (68040 only; "man zs" for further info).
  3339. + IRIX: /dev/ttyf2 instead of /dev/ttyd2 or /dev/ttym2 ("man 7
  3340. serial").
  3341. 3. The API is available, doesn't work, but a workaround as in (2) can
  3342. be used.
  3343. 4. The API is available, but Kermit doesn't know about it. In these
  3344. cases, you can usually use an stty command to enable RTS/CTS on the
  3345. device, e.g. "stty crtscts" or "stty ctsflow", "stty rtsflow",
  3346. before starting Kermit, and then tell Kermit to SET FLOW KEEP.
  3347. 5. No API and no special device drivers. Hardware flow control is
  3348. completely unavailable.
  3349. System V R4 based Unixes are supposed to supply a <termiox.h> file,
  3350. which gives Kermit the necessary interface to command the terminal
  3351. driver to enable/disable hardware flow control. Unfortunately, but
  3352. predictably, many implementations of SVR4 whimsically place this file
  3353. in /usr/include/sys rather than /usr/include (where SVID clearly
  3354. specifies it should be; see SVID, Third Edition, V1, termiox(BA_DEV).
  3355. Thus if you build C-Kermit with any of the makefile entries that
  3356. contain -DTERMIOX or -DSTERMIOX (the latter to select <sys/termiox.h>),
  3357. C-Kermit will have "set flow rts/cts" and possibly other hardware
  3358. flow-control related commands. BUT... That does not necessarily mean
  3359. that they will work. In some cases, the underlying functions are simply
  3360. not coded into the operating system.
  3361. WARNING: When hardware flow control is available, and you enable in
  3362. Kermit on a device that is not receiving the CTS signal, Kermit can
  3363. hang waiting for CTS to come up. This is most easily seen when the
  3364. local serial port has nothing plugged in to it, or is connected to an
  3365. external modem that is powered off.
  3366. 9. TERMINAL CONNECTION AND KEY MAPPING
  3367. [ [578]Top ] [ [579]Contents ] [ [580]Next ] [ [581]Previous ]
  3368. C-Kermit is not a terminal emulator. Refer to page 147 of [582]Using
  3369. C-Kermit, 2nd Edition: "Most versions of C-Kermit -- Unix, VMS, AOS/VS,
  3370. VOS, etc -- provide terminal connection without emulation. These
  3371. versions act as a 'semitransparent pipe' between the remote computer
  3372. and your terminal, terminal emulator, console driver, or window, which
  3373. in turn emulates (or is) a specific kind of terminal." The environment
  3374. in which you run C-Kermit is up to you.
  3375. If you are an X Windows user, you should be aware of an alternative to
  3376. xterm that supports VT220 emulation, from Thomas E. Dickey:
  3377. [583]http://dickey.his.com/xterm/xterm.html
  3378. Unix C-Kermit's SET KEY command currently can not be used with keys
  3379. that generate "wide" scan codes or multibyte sequences, such as
  3380. workstation function or arrow keys, because Unix C-Kermit does not have
  3381. direct access to the keyboard.
  3382. However, many Unix workstations and/or console drivers provide their
  3383. own key mapping feature. With xterm, for example, you can use 'xmodmap'
  3384. ("man xmodmap" for details); here is an xterm mapping to map the Sun
  3385. keyboard to DEC VT200 values for use with VT-terminal oriented
  3386. applications like VMS EVE:
  3387. keycode 101=KP_0
  3388. keycode 119=KP_1
  3389. keycode 120=KP_2
  3390. keycode 121=KP_3
  3391. keycode 98=KP_4
  3392. keycode 99=KP_5
  3393. keycode 100=KP_6
  3394. keycode 75=KP_7
  3395. keycode 76=KP_8
  3396. keycode 77=KP_9
  3397. keycode 52=KP_F1
  3398. keycode 53=KP_F2
  3399. keycode 54=KP_F3
  3400. keycode 57=KP_Decimal
  3401. keycode 28=Left
  3402. keycode 29=Right
  3403. keycode 30=KP_Separator
  3404. keycode 105=KP_F4
  3405. keycode 78=KP_Subtract
  3406. keycode 8=Left
  3407. keycode 10=Right
  3408. keycode 32=Up
  3409. keycode 33=Down
  3410. keycode 97=KP_Enter
  3411. Users of Linux consoles can use loadkeys ("man dumpkeys loadkeys
  3412. keytables" for details. The format used by loadkeys is compatible with
  3413. that used by Xmodmap, although it is not definitely certain that the
  3414. keycodes are compatible for different keyboard types (e.g. Sun vs HP vs
  3415. PC, etc).
  3416. 10. FILE TRANSFER
  3417. [ [584]Top ] [ [585]Contents ] [ [586]Next ] [ [587]Previous ]
  3418. On most platforms, C-Kermit can not handle files longer than 2^31 or
  3419. 2^32 bytes long, because it uses the traditional file i/o APIs that use
  3420. 32-bit words to represent the file size. To accommodate longer files,
  3421. we would have to switch to a new and different API. Unfortunately, each
  3422. platform has a different one, a nightmare to handle in portable code.
  3423. The C-Kermit file code was written in the days long before files longer
  3424. than 2GB were supported or even contemplated in the operating systems
  3425. where C-Kermit ran.
  3426. If uploads (or downloads) fail immediately, give the CAUTIOUS command
  3427. to Kermit and try again. If they still fail, then try SET PREFIXING
  3428. ALL. If they still fail, try SET PARITY SPACE. If they still fail, try
  3429. ROBUST.
  3430. If reception (particularly of large files and/or binary files) begins
  3431. successfully but then fail consistently after a certain amount of bytes
  3432. have been sent, check:
  3433. * Your ulimit ("ulimit -a")
  3434. * The amount of available space on the target disk ("df ." or "df -k
  3435. .")
  3436. * Your personal disk quota (platform- and site-dependent)
  3437. * The maximum file size on the receiver's file system (e.g. 2GB in
  3438. old versions the Linux VFS file system, and/or in applications that
  3439. have not been recoded to use new "large file" APIs).
  3440. * If it's an NFS-mounted disk (if so, try uploading to a local disk)
  3441. * Is there an "idle limit" on the receiving end?
  3442. If none of these seem to explain it, then the problem is not size
  3443. related, but reflects some clash between the file contents and the
  3444. characteristics of the connection, in which case follow the
  3445. instructions in the first paragraph of this section.
  3446. Suppose two copies of Kermit are receiving files into the same
  3447. directory, and the files have the same name, e.g. "foo.bar". Whichever
  3448. one starts first opens an output file called "foo.bar". The second one
  3449. sees there is already a foo.bar file, and so renames the existing
  3450. foo.bar to foo.bar.~1~ (or whatever). When the first file has been
  3451. received completely, Kermit goes to change its modification time and
  3452. permissions to those given by the file sender in the Attribute packet.
  3453. But in Unix, the APIs for doing this take a filename, not a file
  3454. descriptor. Since the first Kermit's file has been renamed, and the
  3455. second Kermit is using the original name, the first Kermit changes the
  3456. modtime and permissions of the second Kermit's file, not its own.
  3457. Although there might be a way to work around this in the code, e.g.
  3458. using inode numbers to keep track of which file is which, this would be
  3459. tricky and most likely not very portable. It's better to set up your
  3460. application to prevent such things from happening, which is easy enough
  3461. using the script language, filename templates, etc.
  3462. Suppose you start C-Kermit with a command-line argument to send or
  3463. receive a file (e.g. "kermit -r") and then type Ctrl-\c immediately
  3464. afterwards to escape back and initiate the other end of the transfer,
  3465. BUT your local Kermit's escape character is not Ctrl-\. In this case,
  3466. the local Kermit passes the Ctrl-\ to the remote system, and if this is
  3467. Unix, Ctrl-\ is likely to be its SIGQUIT character, which causes the
  3468. current program to halt and dump core. Well, just about the first thing
  3469. C-Kermit does when it starts is to disable the SIGQUIT signal. However,
  3470. it is still possible for SIGQUIT to cause Kermit to quit and dump core
  3471. if it is delivered while Kermit is being loaded or started, before the
  3472. signal can be disabled. There's nothing Kermit itself can do about
  3473. this, but you can prevent it from happening by disabling SIGQUIT in
  3474. your Unix session. The command is usually something like:
  3475. stty quit undef
  3476. Unix C-Kermit does not reject incoming files on the basis of size.
  3477. There appears to be no good (reliable, portable) way to determine in
  3478. advance how much disk space is available, either on the device, or
  3479. (when quotas or other limits are involved) to the user.
  3480. Unix C-Kermit discards all carriage returns from incoming files when in
  3481. text mode.
  3482. If C-Kermit has problems creating files in writable directories when it
  3483. is installed setuid or setgid on BSD-based versions of Unix such as
  3484. NeXTSTEP 3.0, it probably needs to be rebuilt with the -DSW_ACC_ID
  3485. compilation switch.
  3486. If you SET FILE DISPLAY FULLSCREEN, and C-Kermit complains "Sorry,
  3487. terminal type not supported", it means that the terminal library
  3488. (termcap or termlib) that C-Kermit was built with does not know about a
  3489. terminal whose name is the current value of your TERM environment
  3490. variable. If this happens, but you want to have the fullscreen file
  3491. transfer display, EXIT from C-Kermit and set a Unix terminal type from
  3492. among the supported values that is also supported by your terminal
  3493. emulator, or else have an entry for your terminal type added to the
  3494. system termcap and/or terminfo database.
  3495. If you attempt to suspend C-Kermit during local-mode file transfer and
  3496. then continue it in the background (via bg), it will block for "tty
  3497. output" if you are using the FULLSCREEN file transfer display. This is
  3498. apparently a problem with curses. Moving a local-mode file transfer
  3499. back and forth between foreground and background works correctly,
  3500. however, with the SERIAL, CRT, BRIEF, or NONE file transfer displays.
  3501. If C-Kermit's command parser no longer echoes, or otherwise acts
  3502. strangely, after returning from a file transfer with the fullscreen
  3503. (curses) display, and the curses library for your version of Unix
  3504. includes the newterm() function, then try rebuilding your version of
  3505. C-Kermit with -DCK_NEWTERM. Similarly if it echoes doubly, which might
  3506. even happen during a subsequent CONNECT session. If rebuilding with
  3507. -DCK_NEWTERM doesn't fix it, then there is something very strange about
  3508. your system's curses library, and you should probably not use it. Tell
  3509. C-Kermit to SET FILE DISPLAY CRT, BRIEF, or anything else other than
  3510. FULLSCREEN, and/or rebuild without -DCK_CURSES, and without linking
  3511. with (termlib and) curses. Note: This problem seemed to have escalated
  3512. in C-Kermit 7.0, and -DCK_NEWTERM had to be added to many builds that
  3513. previously worked without it: Linux, AIX 4.1, DG/UX, etc. In the Linux
  3514. case, it is obviously because of changes in the (n)curses library; the
  3515. cause in the other cases is not known.
  3516. C-Kermit creates backup-file names (such as "oofa.txt.~1~") based on
  3517. its knowledge of the maximum filename length on the platform where it
  3518. is running, which is learned at compile time, based on MAXNAMLEN or
  3519. equivalent symbols from the system header files. But suppose C-Kermit
  3520. is receiving files on a Unix platform that supports long filenames, but
  3521. the incoming files are being stored on an NFS-mounted file system that
  3522. supports only short names. NFS maps the external system to the local
  3523. APIs, so C-Kermit has no way of knowing that long names will be
  3524. truncated. Or that C-Kermit is running on a version of Unix that
  3525. supports both long-name and short-name file systems simultaneously
  3526. (such as HP-UX 7.00). This can cause unexpected behavior when creating
  3527. backup files, or worse. For example, you are sending a group of files
  3528. whose names are differentiated only by characters past the point at
  3529. which they would be truncated, each file will overwrite the previous
  3530. one upon arrival.
  3531. 11. EXTERNAL FILE TRANSFER PROTOCOLS
  3532. [ [588]Top ] [ [589]Contents ] [ [590]Next ] [ [591]Previous ]
  3533. SECTION CONTENTS
  3534. 11.1. [592]C-Kermit as an External Protocol
  3535. 11.2. [593]Invoking External Protocols from C-Kermit
  3536. Unix C-Kermit can be used in conjunction with other communications
  3537. software in various ways. C-Kermit can be invoked from another
  3538. communications program as an "external protocol", and C-Kermit can also
  3539. invoke other communication software to perform external protocols.
  3540. This sort of operation makes sense only when you are dialing out from
  3541. your Unix system (or making a network connection from it). If the Unix
  3542. system is the one you have dialed in to, you don't need any of these
  3543. tricks. Just run the desired software on your Unix system instead of
  3544. Kermit. When dialing out from a Unix system, the difficulty is getting
  3545. two programs to share the same communication device in spite of the
  3546. Unix UUCP lockfile mechanism, which would normally prevent any sharing,
  3547. and preventing the external protocol from closing (and therefore
  3548. hanging up) the device when it exits back to the program that invoked
  3549. it.
  3550. 11.1. C-KERMIT AS AN EXTERNAL PROTOCOL
  3551. [ [594]Top ] [ [595]Contents ] [ [596]Section Contents ] [ [597]Next ]
  3552. (This section deleted; see [598]Using C-Kermit, 2nd Ed, Chapter 14.)
  3553. "pcomm" is a general-purpose terminal program that provides file
  3554. transfer capabilities itself (X- and YMODEM variations) and the ability
  3555. to call on external programs to do file transfers (ZMODEM and Kermit,
  3556. for example). You can tell pcomm the command to send or receive a file
  3557. with an external protocol:
  3558. Send Receive
  3559. ZMODEM sz filename rz
  3560. Kermit kermit -s filename kermit -r
  3561. pcomm runs external programs for file transfer by making stdin and
  3562. stdout point to the modem port, and then exec-ing "/bin/sh -c xxx"
  3563. (where xxx is the appropriate command). However, C-Kermit does not
  3564. treat stdin and stdout as the communication device unless you instruct
  3565. it:
  3566. Send Receive
  3567. Kermit kermit -l 0 -s filename kermit -l 0 -r
  3568. The "-l 0" option means to use file descriptor 0 for the communication
  3569. device.
  3570. In general, any program can pass any open file descriptor to C-Kermit
  3571. for the communication device in the "-l" command-line option. When
  3572. Kermit is given a number as the argument to the "-l" option, it simply
  3573. uses it as a file descriptor, and it does not attempt to close it upon
  3574. exit.
  3575. Here's another example, for Seyon (a Linux communication program).
  3576. First try the technique above. If that works, fine; otherwise... If
  3577. Seyon does not give you a way to access and pass along the file
  3578. descriptor, but it starts up the Kermit program with its standard i/o
  3579. redirected to its (Seyon's) communications file descriptor, you can
  3580. also experiment with the following method, which worked here in brief
  3581. tests on SunOS. Instead of having Seyon use "kermit -r" or "kermit -s
  3582. filename" as its Kermit protocol commands, use something like this
  3583. (examples assume C-Kermit 6.0):
  3584. For serial connections:
  3585. kermit -YqQl 0 -r <-- to receive
  3586. kermit -YqQl 0 -s filename(s) <-- to send one or more files
  3587. For Telnet connections:
  3588. kermit -YqQF 0 -r <-- to receive
  3589. kermit -YqQF 0 -s filename(s) <-- to send one or more files
  3590. Command line options:
  3591. Y - skip executing the init file
  3592. Q - use fast file transfer settings (default in 8.0)
  3593. l 0 - transfer files using file descriptor 0 for a serial connection
  3594. F 0 - transfer files using file descriptor 0 for a Telnet connection
  3595. q - quiet - no messages
  3596. r - receive
  3597. s - send
  3598. 11.2. INVOKING EXTERNAL PROTOCOLS FROM C-KERMIT
  3599. [ [599]Top ] [ [600]Contents ] [ [601]Section Contents ] [
  3600. [602]Previous ]
  3601. (This section is obsolete, but not totally useless. See Chapter 14
  3602. of [603]Using C-Kermit, 2nd Edition).
  3603. After you have opened a communication link with C-Kermit's SET LINE
  3604. (SET PORT) or SET HOST (TELNET) command, C-Kermit makes its file
  3605. descriptor available to you in the \v(ttyfd) variable so you can pass
  3606. it along to other programs that you RUN from C-Kermit. Here, for
  3607. example, C-Kermit runs itself as an external protocol:
  3608. C-Kermit>set modem type hayes
  3609. C-Kermit>set line /dev/acu
  3610. C-Kermit>set speed 2400
  3611. C-Kermit>dial 7654321
  3612. Call complete.
  3613. C-Kermit>echo \v(ttyfd)
  3614. 3
  3615. C-Kermit>run kermit -l \v(ttyfd)
  3616. Other programs that accept open file descriptors on the command line
  3617. can be started in the same way.
  3618. You can also use your shell's i/o redirection facilities to assign
  3619. C-Kermit's open file descriptor (ttyfd) to stdin or stdout. For
  3620. example, old versions of the Unix ZMODEM programs, sz and rz, when
  3621. invoked as external protocols, expect to find the communication device
  3622. assigned to stdin and stdout with no option for specifying any other
  3623. file descriptor on the sz or rz command line. However, you can still
  3624. invoke sz and rz as exterior protocols from C-Kermit if your current
  3625. shell ($SHELL variable) is ksh (the Korn shell) or bash (the
  3626. Bourne-Again shell), which allows assignment of arbitrary file
  3627. descriptors to stdin and stdout:
  3628. C-Kermit> run rz <&\v(ttyfd) >&\v(ttyfd)
  3629. or:
  3630. C-Kermit> run sz oofa.zip <&\v(ttyfd) >&\v(ttyfd)
  3631. In version 5A(190) and later, you can use C-Kermit's REDIRECT command,
  3632. if it is available in your version of C-Kermit, to accomplish the same
  3633. thing without going through the shell:
  3634. C-Kermit> redirect rz
  3635. or:
  3636. C-Kermit> redirect sz oofa.zip
  3637. A complete set of rz,sz,rb,sb,rx,sx macros for Unix C-Kermit is defined
  3638. in the file ckurzsz.ini. It automatically chooses the best redirection
  3639. method (but is redundant since C-Kermit 6.0, which now has built-in
  3640. support for external protocols via its SET PROTOCOL command).
  3641. Note that external protocols can be used on C-Kermit SET LINE or SET
  3642. HOST connections only if they operate through standard input and
  3643. standard output. If they open their own connections, Kermit can't
  3644. redirect them over its own connection.
  3645. 12. SECURITY
  3646. [ [604]Top ] [ [605]Contents ] [ [606]Next ] [ [607]Previous ]
  3647. As of version 7.0, C-Kermit supports a wide range of security options
  3648. for authentication and encryption: Kerberos 4, Kerberos 5 / GSSAPI,
  3649. SSL/TLS, and SRP. See the separate [608]security document for details.
  3650. 13. MISCELLANEOUS USER REPORTS
  3651. [ [609]Top ] [ [610]Contents ] [ [611]Next ] [ [612]Previous ]
  3652. Date: Thu, 12 Mar 92 1:59:25 MEZ
  3653. From: Walter Mecky <walter@rent-a-guru.de>
  3654. Subject: Help.Unix.sw
  3655. To: svr4@pcsbst.pcs.com, source@usl.com
  3656. PRODUCT: Unix
  3657. RELEASE: Dell SVR4 V2.1 (is USL V3.0)
  3658. MACHINE: AT-386
  3659. PATHNAME: /usr/lib/libc.so.1
  3660. /usr/ccs/lib/libc.a
  3661. ABSTRACT: Function ttyname() does not close its file descriptor
  3662. DESCRIPTION:
  3663. ttyname(3C) opens /dev but never closes it. So if it is called
  3664. often enough the open(2) in ttyname() fails. Because the broken
  3665. ttyname() is in the shared lib too all programs using it can
  3666. fail if they call it often enough. One important program is
  3667. uucico which calls ttyname for every file it transfers.
  3668. Here is a little test program if your system has the bug:
  3669. #include <stdlib.h>
  3670. #include <stdio.h>
  3671. main() {
  3672. int i = 0;
  3673. while (ttyname(0) != NULL)
  3674. i++;
  3675. perror("ttyname");
  3676. printf("i=%d\n", i);
  3677. }
  3678. If this program runs longer than some seconds you don't have the bug.
  3679. WORKAROUND: None FIX: Very easy if you have source code.
  3680. Another user reports some more explicit symptoms and recoveries:
  3681. > What happens is when invoking ckermit we get one of the following
  3682. > error messages:
  3683. > You must set line
  3684. > Not a tty
  3685. > No more processes.
  3686. > One of the following three actions clears the problem:
  3687. > shutdown -y -g0 -i6
  3688. > kill -9 the ttymon with the highest PID
  3689. > Invoke sysadm and disable then enable the line you want to use.
  3690. > Turning off respawn of sac -t 300 and going to getty's and uugetty's
  3691. > does not help.
  3692. >
  3693. > Also C-Kermit reports "?timed out closing /dev/ttyxx".
  3694. > If this happens all is well.
  3695. ------------------------------
  3696. (Note: the following problem also occurs on SGI and probably many other
  3697. Unix systems):
  3698. From: James Spath <spath@jhunix.hcf.jhu.edu>
  3699. To: Info-Kermit-Request@cunixf.cc.columbia.edu
  3700. Date: Wed, 9 Sep 1992 20:20:28 -0400
  3701. Subject: C-Kermit vs uugetty (or init) on Sperry 5000
  3702. We have successfully compiled the above release on a Unisys/Sperry
  3703. 5000/95. We used the sys5r3 option, rather than sys5r2 since we have
  3704. VR3 running on our system. In order to allow dialout access to
  3705. non-superusers, we had to do "chmod 666 /dev/tty###, where it had been
  3706. -rw--w--w- (owned by uucp), and to do "chmod +w /usr/spool/locks". We
  3707. have done text and binary file transfers through local and remote
  3708. connections.
  3709. The problem concerning uucp ownership and permissions is worse than I
  3710. thought at first. Apparently init or uugetty changes the file
  3711. permissions after each session. So I wrote the following C program to
  3712. open a set of requested tty lines. I run this for any required outgoing
  3713. line prior to a Kermit session.
  3714. ------ cut here -------
  3715. /* opentty.c -- force allow read on tty lines for modem i/o */
  3716. /* idea from: restrict.c -- System 5 Admin book Thomas/Farrow p. 605 */
  3717. /* /jes jim spath {spath@jhunix.hcj.jhu.edu } */
  3718. /* 08-Sep-92 NO COPYRIGHT. */
  3719. /* this must be suid to open other tty lines */
  3720. /* #define DEBUG */
  3721. #define TTY "/dev/tty"
  3722. #define LOK "/usr/spool/locks/LCK..tty"
  3723. #include <stdio.h>
  3724. /* allowable lines: */
  3725. #define TOTAL_LINES 3
  3726. static char allowable[TOTAL_LINES][4] = { "200", "201", "300" };
  3727. static int total=TOTAL_LINES;
  3728. int allow;
  3729. /* states: */
  3730. #define TTY_UNDEF 0
  3731. #define TTY_LOCK 1
  3732. #define TTY_OKAY 2
  3733. main(argc, argv)
  3734. int argc; char *argv[]; {
  3735. char device[512];
  3736. char lockdev[512];
  3737. int i;
  3738. if (argc == 1) {
  3739. fprintf(stderr, "usage: open 200 [...]\n");
  3740. }
  3741. while (--argc > 0 && (*++argv) != NULL ) {
  3742. #ifdef DEBUG
  3743. fprintf(stderr, "TRYING: %s%s\n", TTY, *argv);
  3744. #endif
  3745. sprintf(device, "%s%s", TTY, *argv);
  3746. sprintf(lockdev, "%s%s", LOK, *argv);
  3747. allow = TTY_UNDEF; i = 0;
  3748. while (i <= total) { /* look at all defined lines */
  3749. #ifdef DEBUG
  3750. fprintf(stderr, "LOCKFILE? %s?\n", lockdev);
  3751. #endif
  3752. if (access(lockdev, 00) == 0) {
  3753. allow=TTY_LOCK;
  3754. break;
  3755. }
  3756. #ifdef DEBUG
  3757. fprintf(stderr, "DOES:%s==%s?\n", allowable[i], *argv);
  3758. #endif
  3759. if (strcmp(allowable[i], *argv) == 0)
  3760. allow=TTY_OKAY;
  3761. i++;
  3762. }
  3763. #ifdef DEBUG
  3764. fprintf(stderr, "allow=%d\n", allow);
  3765. #endif
  3766. switch (allow) {
  3767. case TTY_UNDEF:
  3768. fprintf (stderr, "open: not allowed on %s\n", *argv);
  3769. break;
  3770. case TTY_LOCK:
  3771. fprintf (stderr, "open: device locked: %s\n", lockdev);
  3772. break;
  3773. case TTY_OKAY:
  3774. /* attempt to change mode on device */
  3775. if (chmod (device, 00666) < 0)
  3776. fprintf (stderr, "open: cannot chmod on %s\n", device);
  3777. break;
  3778. default:
  3779. fprintf (stderr, "open: FAULT\n");
  3780. }
  3781. }
  3782. exit (0);
  3783. }
  3784. 14. THIRD-PARTY DRIVERS
  3785. [ [613]Top ] [ [614]Contents ] [ [615]Next ] [ [616]Previous ]
  3786. Unix versions, especially those for PCs (SCO, Unixware, etc) might be
  3787. augmented by third-party communication-board drivers from Digiboard,
  3788. Stallion, etc. These can sometimes complicate matters for Kermit
  3789. considerably since Kermit has no way of knowing that it is going
  3790. through a possibly nonstandard driver. Various examples are listed in
  3791. the earlier sections of this document; search for Stallion, Digiboard,
  3792. etc. Additionally:
  3793. * The Stallion Technologies EasyConnection serial board driver does
  3794. not always report the state of DSR as low. From Stallion (October
  3795. 1997): "Unfortunately, this is a bug in our driver. We have
  3796. implemented all of the other TIOMC functions, eg DTR, DCD, RTS and
  3797. CTS, but not DSR. Our driver should report the actual state of DSR
  3798. on those of our cards that have a DSR signal. That the driver
  3799. always reports DSR as not asserted (0), is a bug in the driver. The
  3800. driver should be either reporting the state of DSR correctly on
  3801. those cards that support DSR or as always asserted (1) on those
  3802. cards that do not have a DSR signal. This will be fixed in a future
  3803. version of our drivers; at this time I cannot say when this will
  3804. be." And later, "As far as I can tell, we don't support the
  3805. termios/termiox ioctls that relate specifically to DSR and RI; all
  3806. the rest are supported. This will, as I mentioned earlier, be fixed
  3807. in the next release of our ATA software."
  3808. - World Wide Escalation Support, Stallion Technologies, Toowong
  3809. QLD, [617]support@stallion.oz.au.
  3810. Later (December 1997, from the same source):
  3811. * We have now released a new version of the ATA software, version
  3812. 5.4.0. This version fixes the problem with the states of the DSR
  3813. and RI signals and how they were being reported by the driver. This
  3814. is the problem that you reported in October. The DSR signal is
  3815. reported correctly on those cards that support the DSR signal, such
  3816. as the early revision of the EasyIO card and the EasyConnection 8D4
  3817. panel, and as always asserted on those cards that do not support
  3818. the DSR signal in the hardware. The new driver is available from
  3819. our Web site, [618]www.stallion.com, in the /drivers/ata5/UnixWare
  3820. directory.
  3821. [ [619]Top ] [ [620]Contents ] [ [621]C-Kermit Home ] [ [622]C-Kermit
  3822. 8.0 Overview ] [ [623]Kermit Home ]
  3823. __________________________________________________________________
  3824. C-Kermit 8.0 Unix Hints and Tips / [624]The Kermit Project /
  3825. [625]Columbia University / [626]kermit@columbia.edu