Zoc English

Embed Size (px)

Citation preview

  • 7/23/2019 Zoc English

    1/151

    1.1 Welcome to ZOC

    (C) EmTec Innovative Software 1993 - 2015http://wwwemteccom

    What is ZOC

    !"C i# a profe##iona$ termina$ em%$ator which $et# &o% acce## character 'a#e ho#t# via SS* Te$net*+oem* IS, an other mean# of comm%nication It can 'e %#e to connect to .ni/in% ho#t# an #he$$acco%nt#* S mai$'o #tem#* I+ mainframe* internet m%#* ro%ter#* microcontro$$er# an man& more

    e#ie# wie$& %#e termina$ em%$ation# $ie $in%* vt102* vt220 an #evera$ t&pe# of an#i !"C #%pport#em%$ation# $ie $in%* tn320 an S%n4# C,E an we$$ nown fi$e tran#fer protoco$# $ie -* 6- !moem*SC7 an 8ermit

    !"C i# hih$& confi%ra'$e an offer# #ome avance an %ni%e f%nction# amon which are ta''e

    #e##ion#* a powerf%$ #cript $an%ae* a%tomatic trierin of action# 'a#e on receive or t&pe tet orata trace feat%re# to name ;%#t a few

    Quick Start Guides

    Sec%re She$$ (SS)

    Te$net

    ,irect Seria$ Connection#

    +oem

    IS,

    Scriptin/7rorammin

    Stem/etwor %e#tion# (ow-To ?%ie)

    Common 7ro'$em# =eat%re# &o% miht have mi##e

    .nin#ta$$in !"C

    http://www.emtec.com/http://www.emtec.com/http://www.emtec.com/
  • 7/23/2019 Zoc English

    2/151

    1.1.1 Quick Start GuidesWelcome to ZOC

    !"C i# a profe##iona$ termina$ em%$ator which $et# &o% acce## character 'a#e ho#t# via Te$net* +oem*SS* IS, an other mean# of comm%nication

    e$ow &o% fin a $i#t of t%toria$# a'o%t how to et #tarte %#in !"C with vario%# comm%nication

    mechani#m# an a'o%t other common ta##

    Sec%re She$$ (SS)

    Te$net

    ,irect Seria$ Connection#

    +oem

    IS,

    Scriptin/7rorammin

    Stem/etwor %ic Connection

    Thi# wi$$ 'rin %p a ia$o where &o% can #e$ect Sec%re She$$from the $i#t of connection t&pe#

    Then enter &o%r e#tination an #e$ect the e#ire em%$ation (termor AT220wi$$ wor in mo#t ca#e#)The e#tination in the Connect to'o can either 'e a ho#t name or I7 are##* for eamp$essh.hogwarts.eduor 192.168.1.1

    If &o% are connectin to a #erver which i# r%nnin on a port other than 22 (the efa%$t for SS)* &o% canprovie an a$ternate port n%m'er '& enterin it in the 7ortfie$ eavin the port fie$ empt&* wi$$ %#e the

    SS efa%$t portIf &o% want to chane termina$ characteri#tic# $ie winow $a&o%t* co$or#* etc c$ic the Eit'%tton tochane option# in the #e##ion profi$e (Se##ion profi$e# are preefine #et# of option# which can 'e %#ea# the %ner$&in confi%ration for a connection)

    Creating Desktop inks

    In the >%ic Connect ia$o* note the Save

  • 7/23/2019 Zoc English

    3/151

    To tran#fer fi$e# over SS connection#* p$ea#e %#e SC7 or !moem (#ee the e#cription for the Sec%reShe$$/SS)

    Other %elated Topics

    Bea more a'o%t otherSSre$ate f%nction# $ie option#* ho#t name#* port# etc

  • 7/23/2019 Zoc English

    4/151

    ,irecta# the connection t&pe

    In the Connect tofie$ enter the tet localhostor the tet serial Then c$ic the Confi%re'%tton forSeria$/,irect* chec "verrie #e##ion profi$ean choo#e a com port via the Scan'%tton an #et the #eria$parameter#

  • 7/23/2019 Zoc English

    5/151

    icon* a# an icon in the '%tton 'ar or a# a o#t ,irector& entr&

    Talking to the ,odem Directl"

    If &o% want to #en

  • 7/23/2019 Zoc English

    6/151

    !ost Director"

    To p%t a new IS, ho#t irect$& into the ho#t irector& o to=i$e +en%@o#t ,irector&an c$ic ewThen enter a tit$e for the entr& an #e$ect IS, Capi 20a# the connection t&pe Then provie a phonen%m'er an #pecif& an em%$ation

    To have !"C $earn &o%r $oin proce%re for $ater a%tomatic $oin* ena'$e Becor etroe# on net $oin

    in the oin ta'

    Other %elated Topics

    +ore a'o%t the IS, C

  • 7/23/2019 Zoc English

    7/151

    acce##e via =i$e +en%@Show ,ata =o$er

  • 7/23/2019 Zoc English

    8/151

    The inow# ver#ion of !"C come# with an %nin#ta$$ proram 6o% can %nin#ta$$ either from the !"Cproram ro%p in the #tart men% or via the

  • 7/23/2019 Zoc English

    9/151

    1. Starting ZOC 2Command ine (arameters and3nvironment4

    Topic# in thi# #ection:

    Comman ine 7arameter#

    Comman ine =i$e# (comman$ineini* FD#h/D$n)

  • 7/23/2019 Zoc English

    10/151

    Dc:Eprogram ilesEFoc6EFoc.e%eD /!#N!:hogwarts.edu

    7$ea#e note the %ote character# which are nece##ar& 'eca%#e of the #pace character in L7roram =i$e#L7arameter# them#e$ve# nee a$#o to 'e enc$o#e '& %ote# if the& contain #pace character#* eDc:Eprogram ilesEFoc6EFoc.e%eD D/C"##:New ail ;ererDorFoc D/U:"$si ??;D

    orma$$& the c%rrent worin irector& i# inore '& !"C (#eeorin ,irector&)* '%t in comman $ine

    parameter# &o% can %#e the irector& which wa# the worin irector& at #tart%p* '& %#in the p$aceho$er%CURDIR%* e /O:GCUR5RGEtest.Foc

  • 7/23/2019 Zoc English

    11/151

    %#e font#* who4# name# match the name iven with /=I* for eamp$e if &o% #tart !"C a# (OCD/45:Courier NewD* !"C wi$$ on$& offer the Co%rier ew font in it# font $i#t 6o% can #e$ectm%$tip$e font# thi# wa&

    Important: 6o% #ho%$ mae #%re that at $ea#t one of the#e font# i# avai$a'$e an #%ita'$e for %#ewith !"C* otherwi#e !"C wi$$ eit with a 7anic me##ae

    "89The /= option i# #imi$ar to /=I* ecept that !"C wi$$ %#e a$$ #%ita'$e font#* ecept the one# $i#te with/=* for eamp$e to %#e a$$ font# ecept the Termina$ font#* #tart !"C a# (OC /47:!ermi$al

    ":0;&%+ove# the mo%#e to the iven pie$ po#ition* e /OU;

  • 7/23/2019 Zoc English

    12/151

    "?*Nscritnameith thi# option* &o% provie a BE proram to 'e eec%te after #tart* e (OC/RUN:

    (OC /RUN:O5!.(R7 D/RUN"R:@##O OR#D

    ote: Thi# /B. parameter can not 'e %#e toether with other parameter# that mae an a%tomaticconnection ($ie /TEET* /C"ECT* ) In the#e ca#e# p$ea#e ;%#t %#e the /B. parameter aninitiate the connection from within the #cript via !ocConnect or #imi$ar comman#

    ote: 7$ea#e a$#o chec the /. parameter 'e$ow

    "?-,=INdestShort form for /CONNECT=RLOGIN@:(#ee a'ove)* e (OC/R#O5N:harryAhogwarts.edu

    "T(@@0Dhen thi# parameter i# provie on the comman $ine toether with a parameter that initiate# a

    connection (e /CONNC!* /!#N!* /;;@* etc) or toether with the /RUNparameter* it wi$$attempt to open a new ta' in an ei#tin !"C winow "therwi#e (witho%t /T

  • 7/23/2019 Zoc English

    13/151

    Thi# option #pecifie# %nattene moe In %nattene moe !"C #%ppre##e# re%e#t 'oe# $ieL

  • 7/23/2019 Zoc English

    14/151

    1..6 'D,)-.)-)+Working Director"+-etwork)nitial Working Director"

    hen #tartin !"C from a inow# comman prompt or from an icon* the c%rrent irector& (from withinwhich &o% i##%e the comman) wi$$ 'e inore In#tea* a$$ primar& proram fi$e# are $oae from theirector& where !"C wa# in#ta$$e

    ,ata fi$e# are $oae from the $ocation which i# confi%re in the

  • 7/23/2019 Zoc English

    15/151

    %#e that va$%e a# the fo$er #pecification If the in#ta$$ation i# not #hare or if theisaleRegistryCo$ig4olderoption i# tr%e* the $ocation of the %#er ata fo$er wi$$ a$wa 'e taenfrom the

  • 7/23/2019 Zoc English

    16/151

    1.6 Screen 3lements

    The e$ement# of the #creen are:

    +en%

    Too$'ar

    C%#tom %tton ar

    +ain inow

    oca$ T&pin

    Stat%# $ine

    1.6.1 ,enuThe men% $et# &o% #e$ect mo#t of the !"C f%nction# (for a e#cription of the partic%$ar f%nction# #ee +en%"verview)

    1.6. Tool:arThe too$'ar offer# icon# for mo#t of the f%nction# in !"C

    6o% wi$$ #ee a e#cription for each icon* if &o% move the mo%#e over it an wait two #econ#

    6o% canC%#tomiDe the Too$'ar'& c$icin with the riht mo%#e '%tton on empt& #pace in the too$'ar

    1.6.6 Custom utton arThe c%#tom '%tton 'ar i# $ocate 'eneath the too$'ar an offer# '%tton# that can 'e efine to #en tet*mae connection#* #tart BE proram# etc

    The '%tton# are part of !"C4# #e##ion profi$e# ("ption#@Se##ion 7rofi$e@.#er %tton#) 6o% can a##inifferent #e##ion profi$e# to ifferent connection# to have ifferent #et# of '%tton# epenin on which ho#t&o% connect to

    In the '%tton option# &o% can a##in $a'e$# for the '%tton# an if &o% move the mo%#e to a '%tton an waita #econ* the f%$$ tet (or action coe) of the '%tton wi$$ 'e #hown

    1.6.7 ,ain WindowThe main winow i#p$a the receive tet The characteri#tic# of the tet (#iDe* font* co$or#) areconfi%re in the Se##ion 7rofi$e ("ption# men%)

    & efa%$t &o% can 'rin %p a pop%p men% '& c$icin the riht mo%#e over the main winow

    6o% can mar tet with the $eft mo%#e '%tton (thi# i# ca$$e #tream moe)

    If &o% ho$ the

  • 7/23/2019 Zoc English

    17/151

    orientate)

    If &o% ho$ the Ctr$ e& pre##e whi$e oin the #e$ection* the tet wi$$ 'e appene to the tet that a$rea&i# in the c$ip'oar rather than overwritin it

    The mare tet i# copie into the c$ip'oar an can 'e acce##e from the f%nction# 7a#te*7a#te (no $ine'rea#)*7a#te >%ote*7a#te CIS->%ote*7rint C$ip'oaranEit C$ip'oarin theEit +en%an with#ome e& #hortc%t#

    1.6.8 ocal T"pingThe oca$ T&pin $ine i# an entr& fie$ into which &o% can enter tet to 'e #ent to the ho#t The tet i#eita'$e an it i# not #ent %nti$ &o% pre## Enter Thi# i# he$pf%$ if &o% are in an on$ine conference or if &o%%#e a remote #he$$ that oe# not provie comman eitin an hi#tor&

    The oca$ T&pin $ine can 'e activate from "ption#@Se##ion 7rofi$e@inow "ption#or '& pre##in

  • 7/23/2019 Zoc English

    18/151

    $%e: ,oorwa& moe active* 7in:

  • 7/23/2019 Zoc English

    19/151

    1.7 ,enu Commands

    The men% provie# #ome #%'men%# which ive &o% acce## to !"C4# f%nction#:

    =i$e +en%

    Eit +en%

    Aiew +en%

    oin +en%

    Tran#fer +en%

    Script +en%

    "ption# +en%

    1.7.1 #ile ,enuThe fi$e men% manae# a$$ nece##ar& f%nction# to maintain the comm%nication evice# (+oem* Te$net orIS,* etc) an to connect to a ho#t %ic Connection)

    Host Director%The ho#t irector& i# a ia$o to maintain &o%r per#ona$ ia$in irector& or to connect to one or moren%m'er# from it (#eeo#t ,irector&)

    ?econnectIf a connection wa# terminate* thi# f%nction wi$$ connect to the #ame ho#t aain

    Disconnect,i#connect# the c%rrent connection

    Ne' Aindo'

    "pen# a new !"C winowNe' Ta

    "pen# a new ta' within the !"C winow

    Close Aindo'C$o#e# the c%rrent !"C winow

    #rint ScreenThi# f%nction $et# &o% print the content# of the termina$ winow (in raw

  • 7/23/2019 Zoc English

    20/151

    Save# the content# of the termina$ winow to the fi$e efine in"ption#@7roram Settin#@Specia$=i$e# If the fi$e a$rea& ei#t#* the tet wi$$ 'e appene

    (ccet ConnectionsThi# f%nction ena'$e#/i#a'$e# the a%to an#wer moe of &o%r comm%nication evice The Te$netevice wi$$ create an incomin port with port n%m'er 23 The Seria$/+oem evice wi$$ #en thecomman# &o% #et %p in Se##ion 7rofi$e@,evice@Seria$/+oem@

  • 7/23/2019 Zoc English

    21/151

    Thi# f%nction tae# tet from the c$ip'oar an #en# it to the ho#t The #enin i# one $ie a tet%p$oa an the e$a& an CB/= tran#$ation from "ption#@Se##ion 7rofi$e@Tran#ferare %#e

    #aste no line reaksETae# tet from the c$ip'oar an #en# it to the ho#t Carriae Bet%rn# are inore an a Space i##ent in#tea Thi# f%nction i# affecte '& the Tet Sen "ption# in the "ption#@Se##ion7rofi$e@Tran#feria$o

    Imaine the fo$$owin ca#e: 6o% #earche a ho#t for fi$e# with the e&wor TEB+ an the ho#t ave&o% a $i#t of fi$ename# - one in each $ine To own$oa a$$ fi$e#* &o% co%$ mar the $i#t with a 'o ($eftmo%#e '%tton whi$e pre##in the %ote '%t %#e# the '$oc %otation #t&$e

    -ote*If &o% ho$ the #hift e& pre##e whi$e #e$ectin thi# f%nction* the tet wi$$ 'e reformatte to fita iven with

    Clioard to 0ditorCa$$# the #tem eitor (#ee "ption#@7roram Settin#@Specia$ =i$e#) with the content# of the

    c$ip'oar

    #rint ClioardSen# the content# of the c$ip'oar to the printer (the printer i# confi%re in "ption#@7roramSettin#@7rinter)

    1.7.6 9iew ,enuIn the Aiew men% &o% wi$$ fin f%nction# that have to o with #creen i#p$a& etc

    7ro'a'$& the mo#t %#e f%nction wi$$ 'e the Scro$$ ac '%ffer It i# a memor& '%ffer that #tore# the $ine#

    that #cro$$e off the top ee of the #creen < #imi$ar f%nction i# the Stream Capt%re: it capt%re# ataeact$& in the orer it wa# receive (which ma& $oo %ite me##& for app$ication# that %#e on #creenmen%#* etc '%t can 'e %#ef%$ for $oin comman# in .ni #he$$# etc)

    See a$#o:oin to =i$e f%nction#

    Scroll @ackThi# f%nction #how# the content# of the #cro$$'ac '%ffer in#ie the main winow to #ee tet that ha##cro$$e off the #creen

    Scroll @ack as Aindo'

  • 7/23/2019 Zoc English

    22/151

  • 7/23/2019 Zoc English

    23/151

    1.7.7 ogging ,enu!"C maintain# m%$tip$e ifferent $oin metho# There are two memor& $oin mechani#m# which arefo%n in the Aiew +en%The $o men% it#e$f feat%re# permanent $oin f%nction#* ie $oin to i# fi$ean printer

    The #o ca$$e o =i$e that $o# a$$ incomin ata permanent$& to a fi$e on the har i# The other i#

    reirectin a$$ incomin ata irect$& to the printer The $a#t one* the ca$$ $o* $o# time* %ration* co#t anfi$e tran#fer# of &o%r ca$$# to a fi$e (#ee"ption#@7roram Settin#@Specia$ =i$e#@Ca$$# o)

    The oin +en% contro$# the capt%re* $o fi$e an printer $oin

    -o! to 8ileThi# f%nction chane# the to$e# the #tat%# of $oin 'etween on an off Thi# can a$#o 'eachieve '& c$icin on the capt%re name in the Stat%# inean can 'e one remote$& if &o%r ho#t#%pport# the ,C2/,CR $oin protoco$ (#ee "ption#@Se##ion 7rofi$e@oinoption#)

    -o! to rinterSometime# it i# han& to have part of a #e##ion #ent to the printer Thi# i# po##i'$e '& ena'$in thi#f%nction 'efore receivin the ata (e 'efore reain a mai$)

  • 7/23/2019 Zoc English

    24/151

    *loadSenin a fi$e to a ho#t i# ca$$e an .p$oa To o thi# the #ener an receiver %#e certain metho#ca$$e Tran#fer 7rotoco$# The %p$oa f%nction #en# a fi$e to the ho#t %#in the c%rrent$& activeprotoco$ (#ee"ption#@Se##ion 7rofi$e@Tran#feroption#)

    Do'nloadBeceivin a 'inar& fi$e from a ho#t i# ca$$e a ,own$oa The #ame tran#fer protoco$# are %#e a# for%p$oa# ,own$oa# are affecte '& the "ption#@Se##ion 7rofi$e@Tran#feroption#

    Send Te>t

  • 7/23/2019 Zoc English

    25/151

    !"C wi$$ a# &o% for a name an #tore the #cript accorin$& The name &o% %#e can $ater 'eentere into the BE fie$ of a ho#t irector& entr& (#ee Chanin o#t ,irector& Entrie#) Then!"C wi$$ eec%te it to $o &o% in after havin e#ta'$i#he a connection to that ho#t

    1.7.< Options OverviewThe option# men% i# %#e to efine the characteri#tic# of !"C There are 'a#ica$$& two in# of option#:$o'a$ proram #ettin# an varia'$e #ettin# (profi$e#)

    #ro!ram Settin!s"ption# which remain the #ame for a$$ the ho#t# &o% ca$$* e irector& #ettin#* han$in ofconnection#* etc

    Session #ro

  • 7/23/2019 Zoc English

    26/151

    0dit :e%oard #ro%ic Connection i# a ia$o which $et# &o% %ic$& #et %p a connection to a ho#t It i# intene forconnection# which &o% o not p$an to mae on a re%$ar 'a#i# =or ho#t# to which &o% connect often* &o%#ho%$ in#tea a an entr& to the o#t ,irector& o#t irector& entrie# can then 'e activate thro%hvario%# #hortc%t metho# (e %#er '%tton# or e& com'ination#) an the& offer a variet& of other 'enefit#*e a%tomatic $oin

    To mae a %ic connection* &o% nee to #e$ect a comm%nication metho* the ho#t to connect to* anoptiona$ port n%m'er (for te$net* r$oin an SS connection#)* an em%$ation an &o%r $oin ata (for SSan B$oin connection#)

    Connect to,epenin on the connection t&pe* &o% can enter a ho#t name or I7 are##* a phone n%m'er orwhatever ientifie# the remote ho#t

    Thi# fie$ offer# a$#o $i#t of recent$& mae connection# If &o% want to reconnect to a ho#t to which&o% recent$& mae a connection* #imp$& pic the ho#t from the rop own $i#t

    Device Speci$ic Considerations $or the Connect?To #ield

    -ocal S/ell Mac ,S 9 onl%E=or oca$ She$$ &o% can %#e either $oca$ho#tor 12001

  • 7/23/2019 Zoc English

    27/151

    #et &o%r parameter#* '%t $eave the port fie$ in the confi%ration ia$o empt&

    Serial"ModemIf &o% connect thro%h Seria$/+oem* &o% wi$$ 'e offere to choo#e a ,ia$-Comman The#ecomman# refer to the

  • 7/23/2019 Zoc English

    28/151

    1.8 !ost Director"

    The ho#t irector& can 'e acce##e from the =i$e men% an act# a# a per#ona$ ho#t irector& for

    common$& %#e ho#t# an their #ettin#The main winow $et# &o% #e$ect one or more ho#t# to ca$$ an f%nction# to mae connection# or tomaintain the $i#t of ho#t#

    The "ption# '%ttonnear the 'ottom of the are## 'oo can 'e %#e to manae the #ection# an toconfi%re $i#t i#p$a& 6o% can a$#o create m%$tip$e fo$er# in#ie each of the #ection# (riht mo%#e '%tton)

    ConnectConnect# to one or more #e$ecte entrie# (&o% can #e$ect more than one entr& '& ho$in the Ctr$e& pre##e whi$e &o% c$ic on one entr& after the other)

    If m%$tip$e entrie# are #e$ecte* the action taen epen# on the #ettin# in the inivi%a$ ho#tirector& entrie# Entrie# can 'e confi%re to open a new ta' or new winow an entrie# are a$#o

    confi%re to either %#e a ia$o with retr&-option to connect or to ;%#t mae the connection witho%t#howin a ia$o

    !"C wi$$ tr& to $a%nch para$$e$ connection# to a# man& ho#t# po##i'$e* '%t 'eca%#e the proram canon$& #how one

  • 7/23/2019 Zoc English

    29/151

    Show the ho#t irector& option# which $et &o% confi%re the co$%mn#* #ection# an other ho#tirector& re$ate #ettin# See o#t ,irector& "ption#

    1.8.1 Con$iguring a !ost Director" 3ntr"< ho#t irector& entr& com'ine# the confi%ration profi$e#* which are manae from !"C4# "ption# +en%(#ee a$#o Confi%rin !"C)an which are #tore in profi$e fi$e#

    Therefore the characteri#tic# of a ho#t irector& 'a#e connection are a com'ination of 7roram Settin#*Se##ion 7rofi$e* 8e& +ap* Tran#$ation Ta'$e*p$%# the #e$ection# for evice* em%$ation* fi$e tran#ferprotoco$* character #et (coe pae)* %p$oa/own$oa fo$er which &o% mae in the ho#t irector& entr&irect$&

    In thi# com'ination* the #e$ection#* which are mae #pecifica$$& in the ho#t irector& entr& ia$o (eevice* em%$ation* own$oa fo$er) wi$$ overrie the corre#ponin #ettin# from the fi$e 'a#e profi$e#(e ho#t irector& evice wi$$ overrie the #e##ion profi$e4# evice* ho#t irector& own$oa fo$er wi$$overrie proram #ettin#4 own$oa fo$er* etc)

    Each entr& con#i#t of the fo$$owin #ettin#

    o#t

    oin

    "ption#

    Shortc%t

    inow

    S

    Info

    1.5.1.1 Host

    Title< name for the entr& Thi# name i# #hown in the ho#t irector& an it i# %#e to #et the tit$e of the#e##ion4# ta' an it i# #hown in the main winow4# tit$e when a connection i# mae

    SectionSe$ect the ho#t irector& #ection to #tore thi# entr& to The #ection# can 'e manae in o#t,irector& "ption#

    Icon6o% can choo#e a co$ore icon for an entr& The entr& wi$$ i#p$a& the icon in the ho#t irector& an itwi$$ a$#o %#e the icon for the !"C winow when a connection wa# mae The co$or of the icon wi$$a$#o etermine the co$or of a #e##ion4# ta' in the main winow

    Sort

  • 7/23/2019 Zoc English

    30/151

    connection t&pe (#ee Connection t&pe 'e$ow) The >%ic Start ?%ie#wi$$ #how &o% how to #et %pconnection# for SS* Te$net* #eria$ ca'$e#* etc

    =or Seria$/+oemconnection# &o% can %#e one or more of the ho#t irector& macro# in thi# fie$The#e can 'e %#e to in#ert #trin# for ca$$in car#* etc into the phone n%m'er (#ee"ption#@7roram Settin#@

  • 7/23/2019 Zoc English

    31/151

    The choice of em%$ation an it# option# can overrie the em%$ation #e$ection an it# #ettin# for thatem%$ation in #e##ion profi$e (the #e##ion profi$e to %#e with thi# connection i# #pecifie f%rther %p inthi# ia$o)

    See a$#oo#t ,irector& Entr& Confi%ration

    1.5.1.2 -o!in

    *sernameere &o% can #et a %#ername for $oin at &o%r ho#t The tet GU;RN"Gor SU;RN"wi$$ %#ethe name of the %#er c%rrent$& $oe into &o%r $oca$ comp%ter Thi# fie$ wi$$ on$& 'e %#e if &o% are%#in Sec%re She$$ or B$oin a# the connection metho for thi# ho#t* or if &o% are recorin

  • 7/23/2019 Zoc English

    32/151

    Enter* Tfor the pa##wor an TGfor the %#ername (a##%min that %#ername an pa##wor wereprovie in the %pper part of thi# ia$o)

    35ample*

    ait;elect @ost:;e$d;ererTaitlogi$:;e$dTGTaitpassword:;e$dTT

    hat thi# #amp$e oe#: ait %nti$ the remote ho#t #en# ;elect @ost:then #im%$ate etroe# for;ereran the Enter e& (T) Then wait for the ho#t to #en logi$: an an#wer '& #enin the%#ername fie$ from thi# ia$o an the Enter e& avin one that* wait for the password:promptan #en the pa##wor from thi# ia$o to the ho#t

    ?ecord ke%strokes on ne>t lo!inIt i# not nece##ar& to write the #tep '& #tep

  • 7/23/2019 Zoc English

    33/151

    If the fie$ i# $eft empt&* the $ofi$e name #pecifie in the #e##ion profi$e wi$$ 'e %#e

    Do'nload"*load 8olderThi# i# the name into which own$oae fi$e# are #tore (or from which %p$oae fi$e# are pice).n$e## the fie$# are $eft empt&* the& wi$$ for the %ration of the connection overrie the va$%e# from"ption#@7roram Settin#@=o$er#

    1.5.1.4 S/ortcuts

    (dd t/is /ost director% entr% to t/e main 'indo's 8ile menuSe$ect thi# option* if &o% want the ho#t to 'e acce##i'$e from !"C4# =i$e men%6o% can in#ert a U-character 'efore a character in the name for the ho#t irector& entr& (on the mainpae* e (OC 5$o??;)* to create a #hortc%t for the men% item

    Connect ia 87:e%It i# a$#o po##i'$e to efine a Ctr$H=-8e& (e Ctr$H=) com'ination that can 'e %#e to connect tothi# ho#t

    Create Deskto S/ortcut...Thi# '%tton create# an icon on &o%r e#top which wi$$ #tart !"C an a%tomatica$$& connect# to thi#ho#t The '%tton wi$$ a$#o $et &o% create an entr& in the %#er '%tton# of the c%rrent #e##ion profi$e

    1.5.1.5 Aindo'

    The inow #ettin# for each ho#t contro$ if the ho#t i# ca$$e in it# own termina$ winow* in a new ta' or ifthe ei#tin winow an ta' #ho%$ 'e %#e

    If &o% want to open connection# in new ta'#* &o% #ho%$ confi%re the entr& to Simp$eConnect(#ee o#tconfi%ration in thi# ia$o) The rea#on i# that when $a%nchin m%$tip$e connection# at the #ame time*

    !"C wi$$ #ometime# nee to %e%e the connect re%e#t# if the entrie# are #et to connect via

  • 7/23/2019 Zoc English

    34/151

    %#e '& ho#t

    ,%rin the $oin the ho#t wi$$ #en the IE+SI re%e#t (FFIE+SIGIB>Q not to 'e mie %p with theFFE+SIGBE> that i# %#e for =I," mai$er #oftware) to which !"C re#pon# '& #enin &o%r %#ername an pa##wor to the ho#t If ever&thin oe# we$$* the ho#t wi$$ $et &o% in at once an #how (or#ip) new#* new mai$ an new fi$e# a# #e$ecte in the IE+SI option# winow

    1.5.1.$ In

  • 7/23/2019 Zoc English

    35/151

    1.8.7 The 'utoConnect #eaturehen &o% #e$ecte one or more entrie# from the ho#t irector& or choo#e >%ic Connection from the =i$e+en%the

  • 7/23/2019 Zoc English

    36/151

  • 7/23/2019 Zoc English

    37/151

    1.; Other #unctions

    row#e inow

    =i$e Tran#fer inow

    I,=IE Tran#fer

    SC7 Tran#fer

    !moem Tran#fer

    BE +inio#t

    1.;.1 rowse WindowThe 'row#e winow $et# &o% #cro$$ 'ac thro%h the tet &o% receive #ince #tartin !"C (or #incec$earin the capt%re '%ffer)

    6o% can mar tet with the mo%#e (th%# p%ttin it into the c$ip'oar) or #earch for tet '& pre##in the=(in) e&

    1.;. #ile Trans$er WindowThe tran#fer winow con#i#t# of the fo$$owin part#:

    NameThe name of the fi$e to 'e tran#ferre (not avai$a'$e in moem own$oa#)

    SiBeThe #iDe of the fi$e to 'e tran#ferre (not avai$a'$e in moem own$oa#)

    TransmittedThe n%m'er of '&te# #ent or receive #o far (the net va$%e witho%t contro$ '&te# $ie chec#%m#)

    TimeThe %ration of the tran#fer #o far an the pro;ecte time to o (on$& avai$a'$e if the fi$e #iDe i#avai$a'$e)

    SeedThe averae net n%m'er of character# #ent or receive #o far Thi# #ho%$ 'e a'o%t a tenth of theconnect #pee (e 90 cp# at 900 'p#)

    SkiThi# '%tton i# avai$a'$e in !moem on$& an #ip# the c%rrent fi$e

    -ote*The #ip option ma& not wor with a$$ !moem imp$ementation#

    Disconnect a

  • 7/23/2019 Zoc English

    38/151

    -ote*7$ea#e 'e caref%$* !"C wi$$ not proper$& $ooff from &o%r ho#t* '%t it wi$$ mere$& han%pin#tea ot a$$ ho#t# (or #op#) $ie thi#

    Delete

  • 7/23/2019 Zoc English

    39/151

    1.;.8 Zmodem #ile Trans$erOverview

    +o#t .ni/in% #tem# haven an imp$ementation of !moem in#ta$$e an preconfi%re (if not* $oo fora pacae name $rD#DDip on the internet* chec if the in% i#tri'%tion offer# a rD#Dor $rD#Dpacet ora# o%r #%pport) Thi# proram wor# ver& we$$ to tran#fer fi$e# over SS or te$net connection an

    interate# #eam$e##$& with !"CIf rD/#D i# avai$a'$e on the remote #erver (or $#D/r#D in #ome imp$ementation#)* &o% can #en a fi$e from theremote ho#t to !"C '& t&pin sF +ile$ames,on the remote #he$$ !"C wi$$ then open the !moemown$oa ia$o an p$ace the fi$e into the $oca$ own$oa irector& ("ption#@7roramSettin#@=o$er#)

    Trans$er

    To #en a fi$e to the remote machine* #tart !"C4# %p$oa (Tran#fer men%) !"C wi$$ then fir#t #en an rFcomman to the ho#t to #tart the remote receiver an wi$$ then perform an %p$oa

  • 7/23/2019 Zoc English

    40/151

    %#ername an pa##wor

  • 7/23/2019 Zoc English

    41/151

    1.< CustomiBing ZOC

    There are vario%# t&pe# of option# that a$$ow the c%#tomiDation of !"C on ifferent $eve$#: : 7roram"ption#*+i#c 7roram "ption#an Se##ion "ption#=ina$$& #ome c%#tomiDation can a$#o occ%r thro%h the comman$ineini fi$e

    7roram option# har$& chane once &o% efine them "n the other han* it i# ver& $ie$& that #ome otherwi$$ iffer 'etween ifferent ho#t# &o% %#e (the#e are ca$$e #e##ion profi$e#) Therefore* whi$e there i# on$&one #et of proram option#* '%t &o% can have a# man& Se##ion 7rofi$e# (containin option# that are more$ie$& to 'e #e##ion #pecific) a# &o% $ie

    Se##ion 7rofi$e#* 8e& +ap 7rofi$e#* etc are fi$e# which contain confi%ration#* which ma& iffer 'etweenconnection# E when connectin to a in% we' #erver an an I+ mainframe* &o% ma& want to haveifferent #et# of %#er '%tton#* ifferent #creen $a&o%t an c%r#or t&pe# < #e##ion profi$e i# a #et ofconfi%ration parameter# which can 'e a##ine to a connection (#e##ion)

    %ic Connect ia$o an o#t ,irector&* &o% can

    #pecif& a connection t&pe an em%$ation an the option# option# for the#e The#e wi$$ overrie thecorre#ponin #ettin# in the #e##ion profi$e Thi# provie# a $a&ere #et of #ettin#* that wi$$ $et &o% %#ethe #ame #e##ion profi$e (f-e* %#er '%tton#* #creen e$ement#* etc) on ho#t# which %#e #$iht$& ifferentconnection# an em%$ation#

    See a$#o:"ption# +en%an Se##ion 7rofi$e#*8e& +ap/Tran#$ation 7rofi$e#*7roram Settin#

    1.

  • 7/23/2019 Zoc English

    42/151

    See a$#o:"ption# "verview*"ption# +en%*Confi%rin !"C* Se##ion 7rofi$e#*8e& +ap an CharacterTran#$ation 7rofi$e#

    1.$.1.1 Aindo'

    DeC,NN0CT0DT,H,STThe #trin Lconnecte to Lan the name of the remote ho#t

    C,M#*T0?N(M0The name of &o%r comp%ter

    H,STThe name of the remote ho#t (e the name of the ho#t irector& entr&)

    H,ST?(AThe connect-to fie$ (e ip or ho#tname)

    INST(NC0

    The n%m'er of the c%rrent$& open !"C winow

    ,#TI,NSThe name of the c%rrent$& $oae #e##ion option# fi$e

    0?SI,NThe ver#ion n%m'er of !"C

    +,C,?H,STIf not on$ine the Strin L!"CL or* if on$ine* the name of the remote ho#t

    +,C0?S,?H,STie V!"C"B"STV '%t inc$%in the ver#ion n%m'er

    Hide 'indo' '/ile connectin! ia (utoConnect

  • 7/23/2019 Zoc English

    43/151

    #%cce##f%$

    MinimiBe 'indo' durin!

  • 7/23/2019 Zoc English

    44/151

    that comman wi$$ a$#o rename the tit$e of the ta' in which it wa# receive

    See a$#o:7roram Settin#

    1.$.1.3 #rinter

    #rinterere &o% can either #e$ect the printer to which o%tp%t i# #ent when &o% %#e one of the printinf%nction# .ner inow# it i# a$#o po##i'$e to #e$ect the inow# efa%$t printer or a printer port

    If &o% are printin from a remote app$ication (e via vt100/220)* the appropriate printer epen# onthe app$ication If the application merely sends text(witho%t #pecific printer contro$ coe#)* &o% caneither #e$ect an& printer that i# in#ta$$e in &o%r #tem

    owever* if &o%r app$ication does send printer control codes(re%ire# tran#parent printin) &o%either nee to #e$ect a printer port (7T) or &o% nee to #e$ect the printer t&pe that &o%r remoteapp$ication epect# an activate the &pa## printer riveroption 'e$ow

    @%ass rinter drierhen thi# option i# #et* remote print ata wi$$ 'e #ent to the printer irect$& witho%t reinterpretin theata Thi# i# nece##ar& if the remote app$ication i# #enin printer contro$ coe# to o paeformattin or print form# In thi# ca#e the t&pe of &o%r phica$ printer nee# to match the t&pe* which&o%r remote app$ication i# epectin* 'eca%#e neither !"C nor the operatin #tem wi$$ a;%#tprinter ata 'etween the two

    ?a' rint settin!sIf nece##ar&* &o% can #pecif& character #e%ence# which wi$$ 'e #ent to the printer* prior to an after#enin the act%a$ print ata

    The#e #e%ence# can contain !"Ccontro$ character#(e T1?or T*to #en an E#c character)an the& can 'e %#e to #en a printer #pecific coe* for eamp$e* to #witch the printer to a ifferentpaper tra&

    #a!e /eaderThe pae heaer fie$ $et# &o% efine ata which wi$$ 'e printe on top of each pae The heaer $inecon#i#t# of part# for the $eft* center an riht of the hea$ine* #eparate '& vertica$ 'ar#* e (

  • 7/23/2019 Zoc English

    45/151

    hen printin to the $oca$ termina$ printer* #ome proram# #en #tart/#top-printin coe# for ever&$ine Thi# can ca%#e !"C to print ever& $ine onto a #in$e pae

    Thi# option contro$# the timeo%t (in #econ#) which !"C %#e# to mere #%'#e%ent printin ;o'# intoone (0 i#a'$e# thi# feat%re)

    See a$#o:7roram Settin#

    1.$.1.4 8olders

    ScritsThe fo$er where BE fi$e# are #earche '& efa%$t an where the #evera$ BE fi$e re%e#ter##tart

    #ro

  • 7/23/2019 Zoc English

    46/151

    -ote*If &o% #et thi# fie$ to +4"U#!,!"C wi$$ %#e C+,EEfor inow# an /'in/#hfor +ac"S

    Call -o!Thi# fi$e i# a fi$e in which !"C $o# connection# an fi$e tran#fer# (CH/C- in the $o mean#connect/i#connect* , mean# own$oa* . mean# %p$oa)

    The fi$ename can contain p$aceho$er# $ie CallsT2T3.logfor ate/time (#ee 7$aceho$er Coe#in the appeni)

    If no path i# #pecifie* the ca$$ $o i# #tore in the $o irector& If the fie$ i# empt&* no ca$$# $o i#written

    Sae ScreenThi# fie$ efine# the name of the fi$e* into which the =i$e +en%@Save-Screenf%nction wi$$ #ave thecontent# of the termina$ winow

    +,C70entsThe BE #cript #e$ecte here wi$$ 'e ca$$e* when !"C i# #tarte* when it terminate# an when

    another comm%nication metho i# activate 6o% wi$$ fin the technica$ etai$# in#ie the #amp$e fi$e(OCN!.(R7an in (OCN!.!7!in the #cript fo$er

    8ile Trans

  • 7/23/2019 Zoc English

    47/151

    re%%api.dllLre%%.dll(http://wwwooreor)

    Quercus #ersonal ?099Re%%32.dll(http://www%erc%#-#com/prehtm)

    ?e!inald7?099regi$ald.dll(http://www'orcom/K;$att/re/reina$/reina$htm)

    )mportant*7$ea#e note that &o% nee to provie f%$$ path name# to &o%r in#ta$$e ,* ec:E

  • 7/23/2019 Zoc English

    48/151

    hen &o% #e$ect tet in the termina$ area* with thi# option i# ena'$e* the proram a%tomatica$$&copie# the #e$ecte tet to the c$ip'oar an c$ear# the #e$ection

    Suress Te>t coied to clioard messa!eThi# option can 'e %#e to #%ppre## the #ma$$ confirmation winow that !"C %#%a$$& i#p$a whencop&in tet to the c$ip'oar

    *se CtrlK and CtrlKC

  • 7/23/2019 Zoc English

    49/151

    eave the fie$# empt& or enter a non-ei#tin name to p$a& no #o%n

    ?emote @ee @ellE+o#t remote ho#t# %#e an aco%#tic #ina$ to raw the %#er4# attention to error# or other #pecia$conition# 6o% can confi%re the proram to repre#ent that #ina$ '& p$a&in a 'eep #o%n from the#peaer* p$a&in the efa%$t #tem #o%n* p$a&in a c%#tom #o%n fi$e or '& i#p$a&in vi#%a$

    effect#

    t entr% 'it/out romtIf &o% i#connect from a #ervice an if there i# another item in the ca$$ %e%e (a##%min &o% hamare more than one entr& to connect to in the ho#t irector&)* !"C can either tr& to connect to thenet #ervice a%tomatica$$& or after promptin &o% if &o% want it to

    Close taThi# option a%tomatica$$& c$o#e# a #e##ion ta' when the connection en# (thi# on$& app$ie# whenm%$tip$e ta'# are open)

    Close 'indo'Thi# option a%tomatica$$& c$o#e# the !"C winow when a connection en#

    See a$#o:7roram Settin#

    1.$.1.11 #romts

    ,efine if &o% want to 'e warne 'efore performin Lanero%#L operation# or if &o% want to protect the#ettin of the macro e an c%#tom '%tton#

    Con

  • 7/23/2019 Zoc English

    50/151

    avoi the warnin a'o%t non-pre#ent evice#

    ote: Thi# option on$& app$ie# to the Seria$/+oeman Seria$/,irectcomm%nication metho#

    Aarnin! i< /i!/7seed 'it/out ?TS"CTSThe BTS/CTS han#hain metho provie# re$ia'$e contro$ of the ata f$ow 'etween the 7C anthe moem If &o% %#e #eria$ comm%nication with hiher tran#fer #pee# witho%t BTS/CTS

    han#hae* &o% wi$$ ver& $ie$& enco%nter tran#mi##ion error# Ena'$in thi# option wi$$ ive &o% awarnin if &o% #e$ect more than RX00 'p# witho%t BTS/CTS

    ote: Thi# option on$& app$ie# to the Seria$/+oeman Seria$/,irectcomm%nication metho#

    Sa

  • 7/23/2019 Zoc English

    51/151

    from the ho#t irector& to 'e ca$$e* an if the ca$$ to a$$ of them fai$#* the fir#t one wi$$ 'e ca$$eimmeiate$& after the thir #ince tr&in the #econ an the thir wi$$ ver& $ie$& nee more 10 #econ#

    Some co%ntrie# re%ire #ome time to pa## 'efore the net n%m'er can 'e ia$e So !"C $et# &o% efinethe minim%m time 'etween trie# to ca$$ an"n%m'er

  • 7/23/2019 Zoc English

    52/151

    f%nction in orer to optimiDe $oain the proram4# $oain time an memor& %#e

    !"C ma& #ti$$ $oa an offer #%ch a f%nction* if it ha# previo%#$& 'een %#e If for eamp$e &o% havei#a'$e the T320 em%$ation* '%t #%'#e%ent$& have a ho#t irector& entr&* which ha# the T320em%$ation #e$ecte* it wi$$ 'e #ti$$ 'e $oae when &o% open the ho#t irector&

    See a$#o:7roram Settin#

    1.$.1.16 Miscellaneous

    Sae session ro

  • 7/23/2019 Zoc English

    53/151

    Then c$ic on the act%a$ e& to 'rin %p the e& reefinition winow (

  • 7/23/2019 Zoc English

    54/151

    T9?

    SS3 T*OT1?OT84

    =or eamp$e if &o% i##%e the i$ocmpcomman on a in% #tem %#in the term em%$ation* &o% wi$$

    for eamp$e #ee an entr& f12N[2RK* which efine# the mappin for the =12 e& (t&pe ma$ termi$oona .ni #he$$ for a $i#t of a$$ the cr&ptic e& an #e%ence ta# $ie f12)

  • 7/23/2019 Zoc English

    55/151

    _ 1RX (9R) 2R (E)

    ` 15R (9

  • 7/23/2019 Zoc English

    56/151

    1.$.3.1 Terminal ,tions

    Thi# winow i# %#e to efine enera$ termina$ characteri#tic# It can 'e opene from the men% or '&o%'$e c$icin the #pace 'etween the '%tton# in the #tat%# $ine

    T0?MIN(-7#(?(M0T0?S

    -ocal ec/oorma$$& a remote ho#t wi$$ #en a$$ t&pe character# 'ac to the termina$* which then i#p$athem In other wor#* the %#er# #ee# hi# own inp%t '& wa& of the ho#t echoin the character#'ac to the termina$ If a ho#t oe# not o thi# (ie if the %#er oe# not #ee what he t&pe#)* thetermina$ can %#e thi# option to i#p$a& inp%t $oca$$&

    0c/o C? onl%hen the Enter e& i# pre##e an when $oca$ echo i# a$#o ena'$e* thi# option mae# !"Cecho on$& a Carriae-Bet%rn in#tea of the norma$ CB/= com'ination

    Incomin! ne'7line to C?"-8hen ena'$e* thi# option# en#%re# that each incomin $ine en (CB or =) i# treate a# an

    Carriae-Bet%rn/ine-=ee com'ination .#e thi# option if receive tet i# either printe overan over in the #ame $ine witho%t avancin to the net $ine or if the tet i# printe $ie a#tairwa& with the c%r#or movin own at the en of the $ine '%t not movin 'ac to the $eftee

    So

  • 7/23/2019 Zoc English

    57/151

    inicate the c%r#or po#ition

    ID-0 TIM0?

    The#e option# contro$ what #ho%$ happen if no character# have 'een #ent or receive for a iventime

    hen #%ch a timeo%t occ%r#* &o% can mae !"C #en #omethin to &o%r ho#t in orer to preventthe ho#t from i$e-i#connectin the #e##ion character i# receive from theho#t

    Send ec/o

    oop 'ac a$$ incomin character# to the oriinator Thi# option can 'e %#e if other comp%ter#are connectin to !"C an if the& are epectin it to 'ehave $ie a ho#t comp%ter

    Warning*Thi# ma& re#%$t in an en$e## $oop if the oriinator a$#o #en# an echo* which i# tr%efor mo#t moem# an ho#t#

    So

  • 7/23/2019 Zoc English

    58/151

    1.$.3.2 -a%out 8ont and Aindo' SiBeE

    7$ea#e a$#o rea the topic =ont#* inow SiDe* Co$orfor aitiona$ information rearin thi# ia$o

    8,NT (ND T0?MIN(- SI+IN=

    ... 'indo' siBe 'ill determine numer o< ro's"colshen the !"C winow i# #iDe* thi# option wi$$ eep the font #iDe %nchane* '%t chane then%m'er of row#/co$%mn# of the termina$ winow in#tea (e from X02R to X32)

    If thi# option i# activate* &o% wi$$ not 'e a'$e to man%a$$& #e$ect a #pecific termina$ #iDe(row#/co$%mn#)* 'eca%#e the termina$ #iDe wi$$ 'e etermine '& the #iDe of the winow

    ... t/e

  • 7/23/2019 Zoc English

    59/151

    The font #iDe i# iven in i#p$a& pie$# with heiht(thi# i# ifferent from the Lpoint#L #iDe*which i# %#%a$$& %#e in tet proce##in proram#) The #iDe of the termina$ area (where tet i#i#p$a&e) epen# on the termina$ #iDe (n%m'er $ine# an character# per $ine) com'ine withthe font #iDe

    (ntialiasin!

    ith thi# option ena'$e* the font wi$$ 'e renere on #creen with #moother ee#* a$tho%hwith #ma$$ font# thi# can re#%$t in a #$iht$& f%DD& $oo T%rnin the option off wi$$ create a morecri#p '%t #$iht$& e& font The thir #tate of the option (ha$f chece) wi$$ activate oreactivate thi# #ettin 'a#e on the operatin #tem4# efa%$t

    See a$#o: =ont#* inow SiDe* Co$or*Se##ion 7rofi$e#*C%#tomiDin !"Can "ption# +en%

    1.$.3.3 Colors

    COO% S3TT)-GS

    Colorsere &o% can choo#e from a preefine pa$ette of co$or# for the fore an 'acro%n an forrenerin character# with #pecific attri'%te#* e &o% can i#p$a& character# in &e$$ow when the ho#twant# to i#p$a& them %ner$ine ,epenin on the termina$ em%$ation* the remote ho#t can chanethe i#p$a& co$or# to hih$iht tet

    !"C4# efa%$t i# '$ac tet on white 'acro%n If &o% enco%nter o co$or effect# with &o%r ho#t*p$ea#e tr& the c$a##ic ra& tet on '$ac 'acro%n

    The fir#t 1 co$or va$%e# are an in%#tr& #tanar an #ho%$ on$& 'e chane with care If &o% wantto o #o an&wa&* &o% can %#e the Eit ?$o'a$ Co$or Ta'$e'%tton to a##in a new co$or to eachhenever a remote ho#t re%e#t# one of the 'a#e co$or#* e LreenL !"C wi$$ %#e the co$or &o%efine in the $o'a$ ta'$e

    T-6

  • 7/23/2019 Zoc English

    60/151

    In other #it%ation#* e if connection# are mae from the comman $ine or if the profi$e i# activate throhBE #cript#* the #ettin# wi$$ 'e %#e a# the& are efine here

    e$p for the inivi%a$ metho# i# avai$a'$e in theevice #ectionof thi# he$p tet an &o% wi$$ fin etai$#for the #pecific t&pe# in the $i#t 'e$ow:Sec%re She$$

    Te$netSeria$/+oeminow#-+oem#IS,B$oiname 7ipe

  • 7/23/2019 Zoc English

    61/151

    preefine co$or #t&$e# for non-etene #e##ion# 6o% can a$#o fin an option# fi$e("7TI"SJ320Doc) that provie# %#er '%tton# for #ome common an #ome %nmappe e

    TN525The 5250 em%$ation i# %#e with I+ iSerie# eServer (former

  • 7/23/2019 Zoc English

    62/151

    See a$#o: E> option inSe##ion 7rofi$e@Termina$

    Options $or Speci$ic 3mulations

    S'a D0- and acksace ke%If &o% ena'$e thi# option* a 'ac#pace i# #ent when the ,E e& i# pre##e an vice ver#a

    Ma acksace as D0-Thi# option #en# the ,E coe when 'ac#pace wa# pre##e The ,e$ e& remain# %naffecte

    Disale al. ke% adIn AT102 moe the n%meric e& pa i# %#e a# a rep$acement for AT102 a%i$iar& e&pa (#eeAT102-e&'oar) Thi# can 'e pro'$ematic if &o% are %#in the c%r#or e in the n%meric e&pain#tea of the ra& c%r#or e Ena'$e thi# option* if &o% want to %#e the c%r#or e in the n%merice&pa an if &o%r remote app$ication oe# not %#e the AT102 e&pa

    SeeAT 8e&'oarfor a e#cription of the e&pa

    ,ri!inal T22 87:e%sThere are two #tanar# for AT220 =-8e& coe# Thi# option a$$ow# to #witch 'etween the two (theoriina$ AT220 e&'oar inore =5)

    Ma #817#84 to to ro' on ke%adThe oriina$ ,EC termina$# ha the 7=1 to 7=R e $ocate a'ove the n%meric e&pa ith thi#option# !"C %#e# the e& pa# %m* /* F an - e a# 7=1 - 7=R

    *se (lt as Meta ke%Some .ni app$ication# ($ie Emac# or +C) are %#in the

  • 7/23/2019 Zoc English

    63/151

  • 7/23/2019 Zoc English

    64/151

    Set# the form* in which en of $ine character# are tran#mitte to the remote machine hen #et to

  • 7/23/2019 Zoc English

    65/151

    'efore c$o#in the tran#fer winow

    Set rocess riorit% to time criticalEna'$in thi# option# 'oo#t# !"C4# priorit& %rin fi$e tran#fer#* which miht he$p to increa#etran#fer thro%hp%t an re%ce tran#fer error# in #ome ver& #pecia$ ca#e# Thi# option #ho%$not 'e %#e witho%t oo rea#on

    See a$#o:Se##ion 7rofi$e#*C%#tomiDin !"Can "ption# +en%

    1.$.3.$ -o!!in! ,tions

    Thi# winow i# %#e to efine fi$e $oin parameter# istin! lo!

  • 7/23/2019 Zoc English

    66/151

    when eact$& the ata wa# receive

    T?(C0"D0@*=The trace f%nction# are main$& intene to e'% a connection or to provie a wa& to #ee thecomm%nication with a remote ho#t/evice in raw form

    S/o' control c/aracters instead o< e>ecutin! t/emShow receive contro$-coe# (he 00 to 1=) a# p$ain tet (e T5for Ta') in#tea ofperformin the f%nction# which are %#%a$$& a##ociate with the#e coe#

    S/o' incomin! data as /e> dumThi# option #how# incomin character# a# com'ination of heaecima$ va$%e# an character#

    Arite ascii trace

  • 7/23/2019 Zoc English

    67/151

    the #ame time

    The $oca$ t&pin fie$ can a$#o 'e to$e %#in a e&'oar #hortc%t (

  • 7/23/2019 Zoc English

    68/151

    1.$.3.1 :e%oard

    87:0;SThi# ia$o $et# &o% map tet or #pecia$ action# to the top row of &o%r e&'oar It i# $imite to =-8e* '%t a more ver#ati$e e&'oar mappin feat%re can 'e fo%n in "ption#@8e&'oar 7rofi$e#

    .#in thi# feat%re* it i# po##i'$e to mae =-e #en tet* initiate connection# from the ho#tirector&* eec%te BE #cript#* etc 6o% wi$$ fin more information a'o%t the#e f%nction#* '& eitina =-e& an then c$icin e$p in the item ia$o (#ee

  • 7/23/2019 Zoc English

    69/151

    i# re%ire '& #ome arcane contro$ #oftware $ie BemoteS or "S26".

    See a$#o:Se##ion 7rofi$e#*C%#tomiDin !"Can "ption# +en%

    1.$.3.11 (uto?elies

    ote: The#e feat%re# are not avai$a'$e if &o% are %#in #creen 'a#e em%$ation# (T320* T5250)

    'uto%eplies

  • 7/23/2019 Zoc English

    70/151

    Window SiBe

    +o#t remote ho#t# i#p$a& tet in a fie n%m'er of $ine# with a fie n%m'er of character# per $ine.#%a$$& 25 $ine# of X0 character# are %#e (thi# ma& iffer epenin on the ho#t an em%$ation)Toether with the fact* that a$$ character# in a font have the #ame with an heiht* thi# etermine# the#creen #pace nece##ar& to i#p$a& the termina$ area 25 $ine# of X0 character# with a #ma$$ font wi$$ tae%p $e## #pace than 25 $ine# of X0 character# with a $arer font !"C wi$$ a;%#t it# winow aro%n the

    #pace which i# nece##ar& to i#p$a& a$$ $ine# an character# with a iven font Thi# mean# that the #iDe ofthe !"C winow epen# on the#e factor#

    The wa how font #e$ection interact# with winow #iDin can 'e confi%re in "ption#* Se##ion 7rofi$e*a&o%tan part$& re$ie# on the termina$ #iDe confi%ration in Se##ion 7rofi$e* Termina$ Characteri#tic#

    Colors

    +o#t em%$ation# wor with a #et of 1 'a#e co$or ('$ac* re* '$%e* reen* ) In "ption#* Se##ion 7rofi$e*inow&o% can #e$ect the co$or#* which !"C wi$$ %#e for tet an 'acro%n owever* the tet an'acro%n co$or# can 'e chane '& the remote ho#t (e it ma& #witch to &e$$ow to i#p$a& hih$ihtetet) Bemote ho#t# %#%a$$& a##%me ra& tet on '$ac 'acro%n #o the co$or# which the remote ho#t#e$ect#* ma& or ma& not 'e oo to rea on &o%r inivi%a$ confi%ration

    In the winow confi%ration it i# a$#o po##i'$e to chane the 1 'a#e co$or# hen thi# i# one* !"C wi$$

    i#p$a& &o%r #e$ecte co$or when the remote app$ication re%e#t# one of the 1 'a#e co$or# .#%a$$& the$o'a$ co$or ta'$e i# on$& chane to moif& the co$or tone# of a iven co$or* e to mae the #tanarreen a 'it 'rihter or immer or to ive it a ifferent tone of reen owever* tain thi# to the etreme* iti# a$#o po##i'$e to #e$ect a comp$ete$& ifferent co$or* #o that !"C i#p$a orane when the remote ho#tre%e#t# reen at%ra$$& thi# ma& $ea to #%rpri#in re#%$t#

    In the T320 an 5250 em%$ation#* the tet an 'acro%n co$or #ettin# are inore The rea#on forthi# i# that the#e em%$ation# wor 'a#e on f%nctiona$ co$or#* ie the ho#t wi$$ re%e#t hih$iht co$or*#tat%# co$or* me##ae co$or* etc from the termina$ ,%e to the va#t n%m'er of com'ination# po##i'$e* !"Ccome# with a #e$ection of co$or #cheme# in which co$or# have 'een #e$ecte for oo reaa'i$it& 6o% can#e$ect one of the#e co$or #cheme# for the 320 an 5250 em%$ation# in Se##ion 7rofi$e* Em%$ation Theco$or #cheme# are '%i$t from the 1 'a#e co$or#* #o it i# po##i'$e to chane them '& chanin the $o'a$co$or ta'$e in Se##ion 7rofi$e* inow

    See a$#o: Se##ion 7rofi$e#* C%#tomiDin !"Can "ption# +en%

    1.$.3.13 (ction7Code (ssistant

    8e* %#er '%tton# an macro# can 'e confi%re to #en tet or perform #pecia$ ta## $ie #enin tet*ca$$in a ho#t from the ho#t irector&* #tartin a BE #cript or #enin #pecia$ em%$ation epenent e

    hen #pecif&in Tet to #en* &o% can %#e the contro$ coe# from the $i#t #hown in Contro$ Coe#* e Tfor Enter or T5for Ta'

    To #en a #in$e em%$ation# #pecific e&** e a T320

  • 7/23/2019 Zoc English

    71/151

    The '%tton# in the a##i#tant ia$o corre#pon with the ta'$e of power coe at the 'ottom of

  • 7/23/2019 Zoc English

    72/151

    1.= )nput+Output Devices

    !"C #%pport# a $i#t of I/" evice# over which &o% can comm%nicate ere i# a $i#t of the#e evice# an

    their e#cription# with rear to option#* %#ae* etc

    Sec%re She$$

    Te$net

    Te$net/SS

    Seria$/+oem an Seria$/,irect

    inow#-+oem#

    IS,

    ame 7ipe

    B$oin

    1.=.1 Secure Shell 2SS!4

    SS "verview

    SS =i$e Tran#fer

    SS "ption# SS ?$o'a$ "ption#

    SS +en% =%nction#

    BE !oc,eviceContro$

    Create SS 7%'$ic/7rivate 8e& =i$e#

    Chanin 7a##phra#e#

    +anae SS T%nne$ 7rofi$e#

    1.).1.1 SSH Secure S/ellE ,erie')ntroduction

    The #ec%re #he$$ evice a$$ow# &o% to $oin to a ho#t via internet/

  • 7/23/2019 Zoc English

    73/151

    ogin

    To a%thenticate with the remote ho#t* &o% can %#e the p%'$ic/private e&* %#ername/pa##wor an/ore&'oar-interactive metho# If &o% want to $oin via p%'$ic/private e&* &o% nee to provie the name# ofthe e& fi$e# for &o%r ho#t 'efore main the connection (enter them in the ho#t irector& entr& or in the%ic connect ia$o or in SS4# $o'a$ option#) =or %#ername/pa##wor or #imi$ar metho# &o% caneither provie the#e %pfront or &o% wi$$ 'e a#e to provie them when nece##ar&

    -ote* 7$ea#e a$#o rea SS 8e& ?eneratorfor information a'o%t how to tran#fer the p%'$ic e& fi$e to the#erver

    #ile Trans$er

    To tran#fer fi$e# over SS &o% can either %#e SC7 or !moem See SS =i$e Tran#ferfor moreinformation

    1.).1.2 SSH 8ile Trans%If &o% nee to connect to &o%r SS ho#t thro%h a S"C8SR pro&* &o% can enter the name/ip anoptiona$ port (efa%$t port i# 10X0) in the S"C8SR pro& fie$ of the SS option# ia$o* e192.168.1.1or mypro%y.somewhere.com:8K8K

    8orce rotocol ersionThi# option enforce# %#e of a #pecific ver#ion of the SS protoco$

    Ci/er modeThe evice option# for SS a$$ow &o% to #e$ect an encr&ption metho to 'e %#e for the connectionowever* if the ho#t oe# not #%pport the #e$ecte encr&ption* the connection wi$$ fai$ ence it i#recommene to %#e 4

  • 7/23/2019 Zoc English

    74/151

    #tore in the fi$e# name nownGho#t#(for SS A1) an nownGho#t#2(for SS A2) in !"C4# SSirector& The#e fi$e# are compati'$e with the re#pective fi$e# of vario%# .ni imp$ementation# ofSS

    Send kee7alie si!nal to sererEna'$in the 4eep a$ive4 option i# intene to prevent the #erver from terminatin the connection %eto inactivit& hen the option i# #et* !"C wi$$ confi%re the TC7 connection with S"G8EE7

  • 7/23/2019 Zoc English

    75/151

    R;O# mail.emtec.commiht ret%rn www2.emtec.comV 212.3M.1J2.1MJ)

    1.).1.$ Create SSH #ulic"#riate :e% 8iles

    Thi# f%nction $et# &o% create a%thentication fi$e# to ientif& &o% with ho#t# that offer p%'$ic/private e& fi$e

    a%thentication6o% nee to #pecif& the $enth of the e& in 'it# (%#%a$$& 102R) an the e& t&pe (the $atter epen# on&o%r ho#t an the SS ver#ion which the ho#t offer#)

    The pa##phra#e i# a wor or #hort #entence which i# %#e to protect the e& in orer o avoi that#omeone who et# ho$ of &o%r private e& fi$e can %#e the e& to $o on with &o%r acco%nt#

  • 7/23/2019 Zoc English

    76/151

  • 7/23/2019 Zoc English

    77/151

    1.).2.2 Telnet ,tions

    The fo$$owin option# are avai$a'$e for Te$net #e##ion#:

    #ure Socket ConnectionThi# option enerate# a p%re TC7 connection witho%t neotiatin te$net option# with the remote ho#t

    Thi# i# %#ef%$ if the #erver i# not a rea$ te$net #erver '%t r%n# a ifferent TC7 'a#e protoco$ in#tea(e S+T7 or other B=C protoco$#)

    Start session 'it/ local ec/o onIf thi# option i# ena'$e* !"C wi$$ %#e $oca$ echo (which i# fa#ter than remote echo) when the#e##ion #tart# owever* %rin the $oin proce## thi# option i# often overrien (ie chane 'acto remote echo) '& the remote ho#t

    Start session in inar% modeIf ena'$e* !"C wi$$ tr& to neotiate a 'inar& #e##ion Thi# i# #ometime# nece##ar& for fi$e tran#fer#to wor

    Do not disconnect on errorIf a tran#mi##ion error occ%r#* !"C norma$$& c$o#e# the connection ith thi# option chece* !"C

    wi$$ eep the connection a$ive

    (D(NC0D ,#TI,NS

    Send C? as C?"N*-Ena'$e thi# option if &o%r ho#t re%ire# a . character #ent after a CB character if the CBcharacter i#n4t fo$$owe '& a = character

    Host sends C?"N*- in inar% modeTr& to ena'$e thi# option if 'inar& fi$e tran#fer# (e !moem) thro%h Te$net connection# fai$

    S=(7$ea#e ena'$e thi# option if &o% et error# from the ho#t #a&in that the c$ient oe# not #%pport S?

  • 7/23/2019 Zoc English

    78/151

    hen thi# option i# #et* the te$net tcp #tream i# confi%re to #en eep-a$ive pacet# to the remoteho#t# (technica$$& thi# mean# that S"G8EE7

  • 7/23/2019 Zoc English

    79/151

    Te$net/SS "ption#

    BE !oc,eviceContro$

    1.).3.1 Telnet"SS- ,erie'The Te$net/SS evice i# 'a#ica$$& ientica$ to the Te$netevice with the eception that a$$ traffic r%n#thro%h an SS encr&ption $a&er

    The evice i# %#ef%$ if &o% want to connect to SS 'a#e ho#t# (e 7"73/SS #erver# on port 995)

    -ote* !"C4# Te$net/SS oe# not #%pport TS neotiation#

    1.).3.2 Telnet"SS- ,tions

    The Te$net/SS evice i# 'a#ica$$& ientica$ to the Te$netevice with the eception that a$$ traffic r%n#thro%h an SS encr&ption $a&er

    The option# are the #ame a# for te$net (#ee Te$net "ption#)

    1.).3.3 Telnet"SS- +ocDeiceControl

  • 7/23/2019 Zoc English

    80/151

    $ocation which the moem ha# mae (not connectin to the #eria$ port ta$in to the moem it#e$f) ithSeria$/,irect however* 4connection4 mean# openin the #eria$ port in orer to echane ata with theattache evice it#e$f

    If &o% have preconfi%re moem# (or moem-$ie evice# $ie ce$$%$ar phone#) attache to &o%rcomp%ter* it wi$$ pro'a'$& 'e ea#ier to %#e them in !"C a#inow#-+oem#rather than %#inSeria$/+oem* e#pecia$$& if &o% want to %#e the#e to mae connection# to remote comp%ter# (e %#in a

    ce$$%$ar phone to ia$ into an office comp%ter) rather than #enin comman# to them irect$& (e in orerto acce## #pecia$ feat%re# of the ce$$%$ar phone it#e$f)

    =or etai$# a'o%t how to connect to a remote ho#t via !"C4# Seria$/+oem an/or how to %#e Seria$/,irectto ta$ to evice# which are attache irect$& to a #eria$ port* p$ea#e fo$$ow the in#tr%ction# in >%ic Start?%ie#

    1.).4.2 Serial"Modem and Serial"Direct ,tions

    Com7#ortEnter the name of the comm%nication# port in thi# entr& fie$ Thi# i# %#%a$$& a #trin $ie CO1%nerinow# (note that there i# no #pace 'etween C"+ an 1) or /de/cu.pl23K3serial%ner+ac "S To acce## com port# a'ove C"+X on inow# T or hiher %#e JJJC"+ To %#e

    remote C"+-port# in a inow# etwor* a moem #harin too$ (e Stomper) i# re%ire

    Serial ,tionsIn thi# #ection &o% efine how ata i# tran#ferre 'etween &o%r comp%ter an the moem (which i#not nece##ari$& the #ame wa& the moem %#e# to tran#fer ata acro## the te$ephone $ine) 6o% haveto #e$ect a #pee ('it# per #econ)* the n%m'er of ata 'it#* a parit& moe (none* even* o* mar or#pace) an the n%m'er of #top 'it#

    hat &o% %#e epen# mo#t$& on &o%r ho#t

    The#e #ettin# are often iven (e in in#tr%ction# of how to ca$$ a ho#t) in an a''reviate ver#ion*$ie 3XR00-X1 (3XR00 'it# per #econ* X ata 'it#* no parit&* one #top 'it)

    ?TS"CTS /ands/akeIf ena'$e* !"C %#e# BTS/CTS harware han#hae for comm%nication with &o%r moem

    BTS/CTS i# %#e to contro$ the f$ow of ata 'etween the comp%ter an the moem an provie# awa& for 'oth to prevent the other from #enin ata

    Thi# i# e##entia$ for fi$e tran#fer# when the #pee of the moem to moem connection i# ifferentfrom the moem to comp%ter connection (which i# tr%e for +75 of AR2 moem#) It i# a$#oe##entia$ in m%$tita#in environment# where the proce##or miht have other thin# to o when ataarrive#

    Th%#* it i# hih$& recommene to have thi# option ena'$e owever* the moem or attacheevice nee# to #%pport it a# we$$* #o chec &o%r moem man%a$ for the proper moem comman toLena'$e 'i-irectiona$ BTS/CTS harware f$ow contro$L for %#e in the moem init #trin (#ee +oem

    "ption#)

    DS? /ands/akeThi# ,SB/,TB han#hae i# #omewhat #imi$ar to BTS/CTS owever* it oe# not contro$ the ataf$ow* '%t the enera$ avai$a'i$it& of the moem an comp%ter (ie if the#e are t%rne on)

    If ena'$e* !"C monitor# the ,SB #ina$ for comm%nication with the moem Thi# option #ho%$on$& 'e ena'$e if &o%r moem an &o%r ca'$e proper$& provie the ,SB #ina$

    9,N"9,88If ena'$e* !"C %#e# the on/off #oftware han#hae for comm%nication (which i# &et another

  • 7/23/2019 Zoc English

    81/151

    metho to contro$ the ata #tream) It %#e# #pecia$ character# to ho$/re$ea#e the #ener Thi#metho i# inferior to BTS/CTS han#hain an #ho%$ on$& 'e %#e if nece##ar&

    alid CD si!nalIf &o%r moem #%pport# the Carrier ,etect (C,) #ina$ (mo#t moem# wi$$ o thi# if &o% a

  • 7/23/2019 Zoc English

    82/151

    the moem to provie a rea$ carrier etect #ina$)

    Dial Commands!"C $et# &o% #et %p fo%r ia$ comman# for ca$$in ifferent t&pe# of n%m'er# (ie %#in a creitcar n%m'er to mae $on i#tance ca$$#) 6o% can #e$ect the ia$ comman to 'e %#e from theo#t ,irector&an when ia$in man%a$$& (from the=i$e +en%)

    To ia$ via moem a comm proram ha# to #en a ia$ comman an the phone n%m'er to themoem an ha# to comp$ete thi# comman '& #enin Z+ The ia$ comman# are

  • 7/23/2019 Zoc English

    83/151

    1.).5.3 ?099 +ocDeiceControl

  • 7/23/2019 Zoc English

    84/151

    &o% o not $i#t a n%m'er here* the IS, networ wi$$ provie the main +S of &o%r IS, #ocet

    Controller IDIf &o% are %#in more than one IS, 'oar #im%$taneo%#$&* #e$ect the 'oar I, here (efa%$t i# 1)

    Set s%stem time to ISDN timeSince IS, tran#fer# the eact #tem time when a ca$$ i# mae* &o% can #e$ect* to #et &o%r

    comp%ter4# time accorin$&

    !ints $or use with 0.8 and 0.61 under C'() .

    To %#e 25/31 &o% nee to #et the IS, option# an to provie aitiona$ information with the phonen%m'er &o% want to ca$$

    Connectin! ia 9.25=or 25 connection#* p$ea#e %#e the fo$$owin IS, #ettin#: 1NR-,C* 2N5S7*3NIS2X0X* $oc#iDeN12X* inowN2To mae a ca$$* &o% #%pp$& the phone n%m'er an the 25 ho#t are## #eparate '& a 'archaracter in the man%a$ ia$ ia$o or in the phone 'oo* e 011RRRYR5X5R5R5R If &o% onot #%pp$& the 25 n%m'er* !"C wi$$ epect to 'e connecte to a efa%$t ho#t

    Connectin! ia 9.31To mae a ca$$ via 31 (ie 25 via IS, ,-Channe$) %#e the fo$$owin #ettin#: 1NR-,C*2N

  • 7/23/2019 Zoc English

    85/151

    1.).$.2 Named7#ie Deice ,tions

    If &o% #et the pipe to accept incomin ca$$# (!"C =i$e men%)* the ca$$er m%#t connect to E

  • 7/23/2019 Zoc English

    86/151

    1.> (rogramming ZOC 2%300+DD34

    There are two metho# of a%tomatin !"C: BE an ,,E oth are e#cri'e in the topic# 'e$ow

    BE 7rorammin Intro%ction

    BE an%ae E$ement# (Aaria'$e#* ,eci#ion#* oop#* etc)

    !"C-BE =%nction# (BE-Eten#ion# for Termina$ Em%$ation#)

    "n$ine BE ,oc%mentation

    ,&namic-,ata-Echane 7rorammin (inow#)

  • 7/23/2019 Zoc English

    87/151

    /Z R77 Z/&& isplay D@ello orldD o$ the local scree$;" D@ello orld0D

    /Z R77 Z/&& ;e$d D@ello orldD to the remote hostC"## (oc;e$d D@ello orld0D

    /Z R77 Z/

    && aBe a remote U$i% host say D@ello orldDC"## (oc;e$d Decho X@ello orld0XTD

    General Considerations.#%a$$& a$$ BE proram# 'ein with a comment* which BE efine# a# an&tet which i# written 'etween /Zan Z/ Thi# mean# that the fir#t $ine in a$$ BE proram# $oo# $ie thi#:/Z R77 Z/ In aition to that* BE a$#o now# a form of comment which r%n# to the en of $ineThe#e comment# #tart with ''(#ee the a'ove #amp$e#)

    BE now# native an non-native comman# an f%nction# Eamp$e# for native comman# are ;"*54* O* N Some of the non-native (!"C #pecific) comman# are (oc;e$d* (oc!imeout*(ocisco$$ect

    =or ea#ier reference* native $an%ae e$ement# wi$$ written in %pperca#e* e C"##* ;#C!* !@N* ;"!oc eten#ion comman# are written in Came$Ca#e* e (ocCo$$ect* (oc;e$d* etc =ina$$& name#which are %#er efine (for eamp$e varia'$e#) are #et in $owerca#e character#* result1KZuseri$put

    !ow to &se Di$$erent T"pes o$ Commands

    Natie Commands6o% can %#e native comman# '& writin the comman name an optiona$ ar%ment# Theirp$acement i# overne '& the BE $an%ae #&nta an the& create the 'a#ic #tr%ct%re of theproram (the a$$ %pperca#e wor# 'e$ow are a$$ native BE comman#):

    54 rc6MK !@N O ;" DCall 4ailed0D;5N"# do$e

    N#; O;" D;uccess0D

    N

  • 7/23/2019 Zoc English

    88/151

    75!

    +,C7Commands!"C-comman# are eec%te '& mean# of BE4# #%'ro%tine or f%nction ca$$ mechani#mE##entia$$& the& come in two f$avor#:

    =or comman# which o not ret%rn a re#%$t (or if &o% o not care a'o%t the re#%$t)* &o% %#e the C"##comman with the name of the !"C-comman an the re%ire ar%ment# #eparate '& comma#

    =or comman# which o ret%rn a va$%e* &o% %#e an a##inment an #%pp$& the ar%ment $i#t enc$o#e in'racet# after the comman name

    && two comma$ds without retur$ alues:C"## (oc?eep 2C"## (ocCo$$ect Dtel$et.hogwarts.eduDC"## (ocow$load D(OD= D;O4O#RD

    && this is a comma$d which retur$s a alue:a$swer (oc"sBDhat is your $ameD

    ' Small 35ample+o#t of the time &o% wi$$ %#e BE to $o into a ho#t an o thin# a%tomatica$$&

    hi$e #imp$e $oin# #e%ence# can 'e #tore irect$& in the ho#t irector& witho%t #criptin (#ee Chanino#t ,irector& Entrie#)* there i# a $imit to what the#e can o

    The eamp$e 'e$ow #how# a more comp$e ca#e It ca$$# a SS ho#t an chec# for emai$ '& i##%in themai$comman on the ho#t an $ooin at the re#%$t

    /ZR77Z/

    && set ariales or host logi$hostip Dusers.hogwarts.eduDuser$ame DharrypDpassword DalohomoraD

    && maBe a$ ;;@ co$$ectio$ to the hostC"## (oc;eteice D;ecure ;hellD

    C"## (ocCo$$ect user$ameD:DpasswordDADhostip

    && i logi$ worBs= we should see the D#ast logi$D&& message withi$ 1K seco$ds. i (ocait retur$s 6MK=&& it mea$s it did $ot appear i$ timeC"## (oc!imeout 1K% (ocaitD#ast logi$D54 %6MK !@N O

    && we are i$= so wait or a promptC"## (ocait DSD

  • 7/23/2019 Zoc English

    89/151

    && se$d the mail comma$dC"## (oc;e$d DmailTD

    && sBip the echo rom our comma$dC"## (ocaitli$e

    && wait or o$e more li$e o output a$d gra it

    C"## (ocaitli$ethemail (oc#astli$e

    && logout a$d disco$$ectC"## (oc;e$d De%itTDC"## (ocelay 1C"## (ocisco$$ect

    /Z i the reply rom mail was diere$t rom DNo mail or ...D the$ display a message o% to the user Z/54 #4!themail=JDNo mailD !@N O

    C"## (ocsg?o% themail

    NN

    -ote* +ore #amp$e# can 'e fo%n in the !ocScriptinSamp$e#Diparchive

    What now/Contin%e with the more etai$e overview of BE an%ae E$ement#

    1.>. %300 anguage 3lementsOverviewThi# topic offer# an overview of the mo#t common$& %#e part# of the native BE $an%ae (amore 'a#ic intro%ction to !"C prorammin can 'e fo%n in BE 7rorammin)

    The BE $an%ae in com'ination with !"C 'a#ica$$& con#i#t# of three part#:1 a#ic BE in#tr%ction# (C"##* 54* N* etc)2 BE '%i$t in f%nction# (!5* ;U?;!R* ;!R5

  • 7/23/2019 Zoc English

    90/151

    Command #lacementIn BE comment# can #pan m%$tip$e $ine# when the& are p$ace 'etween /2an 2/ BE a$#onow# #in$e $ine comment#* which #tart with a ''#e%ence an which a%tomatica$$& en when the$ine en#

    +ore than one comman can 'e p$ace in one $ine '& #eparatin them '& #emico$on#

    < comman can 'e contin%e in the net $ine '& p$acin an extracomma at the en of the $ine

    /Z R77

  • 7/23/2019 Zoc English

    91/151

    6o% can a##in #trin# to varia'$e# Strin# in %ote# an #trin varia'$e# can #imp$& 'e concatenate '&writin them after oneanother* a$tho%h #ometime# the #trin concatenation operator LLcan 'e%#e for c$arit& or to to re#o$ve am'i%itie#:

    /Z R77 Z/w DorldDe% D0Dw2 wLLe% /Z the LL operator is actually reWuired here: wLLe% s. we% Z/hwe D@ello Dw2

    && say ie times D@ello orld0D;" hwe;" D@elloD w2;" D@ello Dw2;" D@ello DLLw2;" D@ello DLLwLLe%

    Tracin!To fin error# in &o%r BE proram (or to watch the proram eec%tion) &o% can in#ert a !R"C "comman into &o%r BE proram (%#%a$$& after the initia$ comment) ith that* the BEinterpreter wi$$ i#p$a& each in#tr%ction in the proram a# it eec%te# it

    !R"C 5wi$$ #how ver& etai$e tracin an !R"C Ot%rn# tracin off

    ConditionalsTo epre## conition# in BE proram#* the fo$$owin conitiona$ operator# are %#e:

    Operator #unction 35ample

    N e%a$ (n%m'er#) 54 ret6MK !@N ...

    NN eact$& e%a$ (#trin#) 54 i$putD(OCD !@N ...

    OP not e%a$ 54 rc+,6MK !@N ...

    JN not e%a$ (#ame a# OP) 54 rc6MK !@N ...

    O $e## 54 al+1K !@N ...

    P reater 54 al,IK !@N ...ON $e## or e%a$ 54 al+1KK !@N ...

    PN reater or e%a$ 54 al,1KK !@N ...

    U

  • 7/23/2019 Zoc English

    92/151

    Decisions,eci#ion# are mae %#in the I3 T"EN DO END EL!E DO END#e%ence (#ee a'ove for conitiona$#)< t&pica$ proram part %#in an I3comman $oo# $ie thi#:

    /Z R77 Z/54 rcK L rc1 !@N O /Z rc K oder rc 1 Z/ ;" DoBDN#; O ;" DailedDN

    The ESE-part can 'e omitte if it i# not neee The e&wor# DOan ENDcan 'e omitte if on$& one

    comman i# to 'e eec%te conitiona$$&:

    /Z R77 Z/54 rcK L rc1 !@N ;" DoBD#; ;" DailedD

    -oosoop# are epre##e in the fo$$owin form:

    DO END

    DO 5"ILE ENDDO UNTIL ENDDO = TO END

    35ample*

    /Z R77 Z/O I ;" D@elloDN

    N 1KKO @5# $,K ;" $ $ $&1N

    O i1 !O 1K ;" iN

  • 7/23/2019 Zoc English

    93/151

    oop# can 'e a'orte from within %#in the #"comman The 5!R"!comman wi$$ #ip the re#t ofthe $oop 'o& for the c%rrent iteration an wi$$ contin%e with the net $oop iteration

    Fums and #rocedures SuroutinesE

    %mp taret# ($a'e$#) an #%'ro%tine# are mare with a name an a co$on To ;%mp to a $a'e$* %#e the;5N"#comman

    The C"##comman i# %#e to ca$$ a #%'ro%tine (which wi$$ ret%rn to the p$ace it wa# ca$$e from viaR!URN)

    The fo$$owin eamp$e emon#trate# a ;%mp an a ca$$ to a #%'ro%tine with ar%ment pa##in:

    /Z R77 Z/

  • 7/23/2019 Zoc English

    94/151

    power: ase "R1 pow "R2 res 1 O 51 !O pow res resZase N

    R!URN res

    0>ternal CallsIt i# a$#o po##i'$e to ca$$ an eterna$ #cript fi$e a# a #%'ro%tine an pic %p a po##i'$e re#%$t To o thi#* thename of the eterna$ #cript fi$e# nee# to 'e p$ace in %ote# The ca$$e #cript then nee# to 'e p$aceeither in the !"C proram fo$er* in the !"C =i$e# fo$er* in the !"C #cript fi$e# fo$er or in a fo$er whichi# $i#te in the 7

  • 7/23/2019 Zoc English

    95/151

    ;" a;" mult aZR!URN mult

    T/e #(?S0 command7=

  • 7/23/2019 Zoc English

    96/151

    @uilt7In 8unctionsThe f%nction# 'e$ow can 'e %#e in a##inment# or in other comman# that epect va$%e#* e "?;aor 54 "?;$,1K !@N ...

    -ote*"n$& the e##entia$ f%nction# an ar%ment# are $i#te here* for a comp$ete e#cription p$ea#e #ee

    The !"C BE Beference (7,=)in &o%r +& ,oc%ment#@!"C =i$e#@BEfo$er

    (@SalueE

  • 7/23/2019 Zoc English

    97/151

    S*@ST?strin!& osR& len!t/EBet%rn O$enthP character# from po#ition Opo#P in #trin O$enthP can 'e omitte an wi$$ret%rn the re#t of the #trin

    ST?I#strin!EBemove $eain an trai$in '$an# from a #trin e str ;!R5

  • 7/23/2019 Zoc English

    98/151

    /Z process li$e o ile l$ here Z/

    NC"## ;!R" ile= DCD= DC#O;D

    7$ea#e a$#o chec the =IEI" #amp$e in SCBI7TJBS

  • 7/23/2019 Zoc English

    99/151

    IN#*TIEI()

    #?INTS.EST accept the #ame form of comman#* the& on$& iffer in thefact* that EEC.TE cannot 'e %#e to retrieve ret%rn va$%e# from f%nction# The comman# m%#t

    'e Dero terminate (C-#t&$e #trin#)!"C oe# not han$e comman# enc$o#e in #%are 'racet# (a# recommene in the +icro#oft,,E #pecification) an it oe# not han$e m%$tip$e comman# per me##ae .nicoe i# not#%pporte< comman can 'e #ent in the form +comma$d, +argume$ts,or +comma$d,+argume$ts,The ar%ment# can 'e #eparate '& '$an or comma owever* the recommene #t&$e i# with'racet# an comma Strin #ho%$ 'e p$ace 'etween %otation mar# '%t it i# $ea$ to #en themwitho%t if the& o not contain #pecia$ character#ere i# a $i#t of va$i comman #trin# =or 'acwar compati'i$it& it i# $ea$ to omit the $etter# !"Cat the 'einnin of the comman wor#

    ftp://ftp.emtec.com/zoc/ftp://ftp.emtec.com/zoc/ftp://ftp.emtec.com/zoc/
  • 7/23/2019 Zoc English

    100/151

    (oc?eep2(ocsg?o%D@ello orld0D= 2(ocNotiyX4ile D4OO?"R."!"D $ot ou$d0X

    (ocReWuest D@owXs lie'D D4i$eD DNot ?adDNotiy rror?eep 2

    -ist o< CommandsAia ,,E &o% can %#e the #ame #et of comman#/f%nction# a# in BE The $i#t can 'e fo%n in the!"C-Comman Beferencein the appeni

    0>amleThe fo$$owin coe i# a #ma$$ eamp$e of how to #tart a ,,E connection via +icro#oft

  • 7/23/2019 Zoc English

    101/151

    && call a (OC u$ctio$ or user i$teractio$ a$d store the result set reply to (ocReWuestDour preere$ce'D= D"pplesD= DOra$gesD

    && release the comma$d processi$g e$d co$ersatio$e$d tell

    7$ea#e #ee the $i#t of avai$a'$e comman#for a e#cription of parameter# (thi# $i#t i# a$#o avai$a'$e irect$&from !"C4# he$p men%) The #&nta an eamp$e# there are tai$ore to !"C4# interna$ BE #criptinenine* '%t their %#e from within an

  • 7/23/2019 Zoc English

    102/151

    1.1 &pdates 'uthor 3mail Orders ...

    1.1.1 Contacting 3mTecOrdering

    If &o% have a %e#tion a'o%t orerin* p$ea#e vi#it http://wwwemteccom/common/orerhtm$for a$$orerin etai$# or #e$ect 4"rer-=orm4 from the !"C e$p men% or from the !"C 7roram ?ro%p in &o%rinow# Start +en% There &o% wi$$ fin the $i#t of i#tri'%tor# an wa to contact them

    Support

    If &o% have a %e#tion* #%e#tion* or if #omethin oe# not wor* we are rea$$& intere#te to he$p %t

    p$ea#e (prett& p$ea#e with #%ar on top)* 'efore writin an #%pport emai$* chec o%t 7ro'$em# an>%e#tion#

    If &o% o not fin the an#wer there* fee$ contact #%pport via o%r we'#ite:http://wwwemteccom/common/#%pporthtm$

    Contact

    If &o% have comp$e technica$ pro'$em#* nee eve$opment #%pport or c%#tom prorammin* have iea#or '% report#* nee a #ite $icen#e* want to #en a enera$ comment or Chri#tma# pre#ent# p$ea#e contactEmTec via: http://wwwemteccom/common/contacthtm$ or

    EmTec Innovative Software+ar%# Schmit8irchenwe 1R

    90R19 %ern'er- ?erman& -

    1.1. #inding &pdateshttp://wwwemteccom/Doc/inehtm$http://www'mtmicrocomftp://ftpemteccom/Doc

    1.1.6 Cop"rights and Trademarks

    !"C i# (C) 1993-2015 '&EmTec* Innovative Software+ar%# Schmithttp://wwwemteccom

    !"C an EmTec are rei#tere traemar# of +ar%# Schmit

    Thi# #oftware a$#o contain# #o%rce coe an proram part# from the fo$$owin #o%rce# (which i# %#e in

    http://www.emtec.com/common/order.htmlhttp://www.emtec.com/common/support.htmlhttp://www.emtec.com/common/contact.htmlhttp://www.emtec.com/zoc/index.htmlhttp://www.bmtmicro.com/ftp://ftp.emtec.com/zocftp://ftp.emtec.com/zochttp://www.emtec.com/http://www.emtec.com/common/order.htmlhttp://www.emtec.com/common/support.htmlhttp://www.emtec.com/common/contact.htmlhttp://www.emtec.com/zoc/index.htmlhttp://www.bmtmicro.com/ftp://ftp.emtec.com/zochttp://www.emtec.com/
  • 7/23/2019 Zoc English

    103/151

    accorance with their re#pective #oftware $icen#e):

    Cop"rights

    In

  • 7/23/2019 Zoc English

    104/151

    +,C& 0mTec!"C an EmTec are rei#tere traemar# of +ar%# Schmit

    Microso

  • 7/23/2019 Zoc English

    105/151

    1.11 '((3-D)0

    Ta'$e of Contro$ Character# an 7ower Coe#

    AT102/AT220 Specia$ 8e on the 7C 8e&'oar

    320 Specia$ 8e on the 7C 8e&'oar

    8e& ame# for !ocSenEm%8e&/Z8E6

    BE an%ae E$ement#

    !"C BE-Comman#/=%nction#

    =eat%re# 6o% +a& ave +i##e

    Common >%e#tion# (ow-To ?%ie)

    Common 7ro'$em# an >%e#tion# (Tro%'$e Shootin ?%ie)

    1.11.1 Special Codes 2Ctrl?Characters (laceholder? and (owerCodes4

    Contro$ Coe#

    7$aceho$er Coe#

  • 7/23/2019 Zoc English

    106/151

    e TJ4for ,E

    Z+ Enter* CB(ew$ine in T320/5250)

    Z[ E#c

    33Z ac#pace

    ZI Ta'

    ZZ Z char

    ZK Ctr$HZ (ec 30)

    Z[[ CSI

    Z ine =ee

    Z! Sen ,ata(avai$a'$e in T320/5250on$&)

    (laceholder Codes

    The ta'$e 'e$ow $i#t# p$ace ho$er# that can 'e %#e in #ome !"C fie$# to in#ert ate* time or connectionre$ate va$%e# The& can 'e %#e in a$$ p$ace# that #%pport norma$ contro$ coe# an a$#o in ofi$e name#("ption#@Se##ion 7rofi$e@oin)

    Control Code %eplacement 9alue

    ZU Bep$ace '& the pa##wor from the ho#t irector& entr& that i#c%rrent$& on$ine (for #afet& rea#on# thi# wor# on$& once per

    #e##ion)ZV Bep$ace '& the %#ername from the ho#t irector& entr& that i#

    c%rrent$& on$ine

    ZH Bep$ace '& the name of the remote ho#t on$ine

    Z1 Bep$ace '& c%rrent a& of month

    Z2 Bep$ace '& c%rrent month

    Z3 Bep$ace '& c%rrent &ear

    ZR Bep$ace '& c%rrent ho%r

    Z5 Bep$ace '& c%rrent min%te

    Z Bep$ace '& c%rrent #econ

    Z Bep$ace '& $oca$ comp%ter name

    ZX The in#tance n%m'er of the c%rrent$& open !"C winow If thewinow ha# m%$tip$e ta'#* a co%nter for the ta'# wi$$ a$#o 'e aeThi# coe i# mo#t$& %#e with $o fi$ename# to prevent m%$tip$ein#tance# from %#in the #ame fi$e

    Z9 !"C ver#ion an operatin #tem* e !"C500-7

    'ction Codes

  • 7/23/2019 Zoc English

    107/151

    The ta'$e 'e$ow $i#t# p$ace ho$er# that can 'e %#e in !"C power fie$# ($ie =-+acro#) to achieve effect#$ie #tartin BE #cript# or connect to ho#t#

  • 7/23/2019 Zoc English

    108/151

    8e for the AT102/AT220/in%/term Em%$ation#

    8e for the 320 Em%$ation

    8e for the 5250 Em%$ation

    ,enu Shortcuts

    e" #unction

  • 7/23/2019 Zoc English

    109/151

  • 7/23/2019 Zoc English

    110/151

    [-d [-d

    [*d [Hd

    1.11.7 T-6

  • 7/23/2019 Zoc English

    111/151

    %tton#) or to an& e&'oar e in the "ption#@8e&'oar 7rofi$e#'& %#in Em%$ation ,epenent 8e&ame# for BemappinThe& can a$#o 'e #ent thi# wa& from Be thro%h the (oc;etmueycomman

    88 e" (C e"

    [7=1d[7=12d [=1d[=12d[7=13d[7=2Rd [ShiftH=1d[ShiftH=12d

    [ew$ined [Bet%rnd (F)

    [Enter/Tran#mitd ShiftH[Bet%rnd (F)

  • 7/23/2019 Zoc English

    112/151

    : N =22G N =23H N =2R< N

  • 7/23/2019 Zoc English

    113/151

    ,e$ete* 7.p* 7,own* Ta'* acTa'*=1* =2* * =20 (AT220 #t&$e)* ome*En* +oome* +oEn* =1*=2* * =2R (term #t&$e)

    T320 In#ert* Enter* Ta'* acTa'* Be#et*

    ome* eft* eft2* Biht* Biht2* .p*,own* ewine*

  • 7/23/2019 Zoc English

    114/151

    owever* if &o% are not intere#te in the re#%$t coe* it i# po##i'$e to ca$$ f%nction# (comman# whichret%rn va$%e#) with the proce%re #t&$e ca$$ In other wor#* the #tatement# C"## (ocow$loadD(OD= D;O4O#RDan error (ocow$loadD(OD= D;O4O#RDare 'othcorrect

    Warning*BE does not allowto pa## parameter# in 'racet# when %#in the C,LL#&nta Thi# mean#that the #tatement C"## (ocow$loadD(OD= D;O4O#RDi# incorrect!

    ZOC %300 35tensions

    In the $i#t 'e$ow* the %#e of 'racet# in comman# tit$e# inicate#* that &o% t&pica$$& nee to %#e thef%nction #t&$e #&nta (#ee a'ove)* 'eca%#e the ret%rn va$%e of the comman# i# %#%a$$& #inificant

    +oc(skRtitle R& resetEShow a tet inp%t winow an rea tet from %#er If the #econ ar%ment (Oefa%$tP) i# provie*the entr& fie$ wi$$ 'e pre#et with thi# va$%e

    35ample*

    a$swer (oc"sBD"re ou sure'D= DNoD54 a$swerDNoD !@N ...

    See also*!oc?et=i$ename for a fi$ename winow an !ocBe%e#t for a m%$tip$e choice winow

    +oc(sk#RtitleESame a# the !oc

  • 7/23/2019 Zoc English

    115/151

    35ample*

    C"## (oc?eep 2

    +ocClioard sucommand R& 'ritestrin!7erform# a c$ip'oar f%nction for one of the fo$$owin #%'comman#:

    ?0(DBet%rn# the c%rrent content of the c$ip'oar

    A?IT0rite# the #trin from the 2n parameter to the c$ip'oar

    35ample*

    clip (ocClipoardDR"D

    35ample*

    C"## (ocClipoard DR5!D= $ewclip

    +ocClsC$ear the #creen Same a# !ocComman(LCSL)

    35ample*

    C"## (ocCls

    +ocCommand sucommand7erform# a c$ip'oar f%nction for one of the fo$$owin #%'comman#:

    C-SC$ear #creen

    C(NC0-C,NN0CTCance$ a connect re%e#t that i# c%rrent$& in prore##

    C-0(?SC?,--@(C:C$ear #cro$$'ac '%ffer

    DISC,NN0CTTerminate c%rrent connection

    S0ND@?0(:Sen# a moem 'rea #ina$ (Seria$/+oem evice on$&)

    35ample*

    C"## (ocComma$d D5;CONNC!D

  • 7/23/2019 Zoc English

    116/151

    See also* !oc+en%Event

    +ocConnect RaddressConnect to a ho#t via te$net* moem* ##h etc or rea the are## to connect to from the %#er if theparameter i# omitte The connection metho wi$$ 'e the one that i# active in the c%rrent #e##ionprofi$e

  • 7/23/2019 Zoc English

    117/151

    C"## (ocelay M.8

    +ocDeiceControl strin!Thi# comman eec%te# a evice #pecific comman (e to ret%rn the #ina$ #tate# of the C"+ portthro%h the Seria$/+oem evice)

    7o##i'$e contro$ comman# for each comm%nication metho are e#cri'e in !"C ,evice#

    35ample*

    state (oceiceCo$trolD!R;232;5N"#;D

    +ocDisconnect,i#connect c%rrent connection Same a# !ocComman(L,ISC"ECTL)

    35ample*

    C"## (ocisco$$ect

    +ocDo'nloadrotocolRotions&

  • 7/23/2019 Zoc English

    118/151

    7a## a

  • 7/23/2019 Zoc English

    119/151

    worBdir (ocet5$oDOR5RD

    ullile (ocet4ile$ameDChoose 4ileD= worBdirile (oc4ile$ameD!45#D= ullilepath (oc4ile$ameD!

  • 7/23/2019 Zoc English

    120/151

    35ample*

    ret (oc4ileRe$ameDC:E"!"EU;R45#.!

  • 7/23/2019 Zoc English

    121/151

    35ample*

    older (ocet4older$ameD;elect 4olderD54 olderED[[C"NC#[[D !@N O ;" olderN

    See also* !oc=i$ename* !oc?et=i$ename* !oc?et=i$ename#

    +oc=etHost0ntr%name& ke%EBetrieve# the e&-va$%e pair for a !"C ho#t irector& entr& (#ee !ocSeto#tEntr& or!ocSetSe##ion"ption comman# for more information a'o%t #%ch e&-va$%e pair#)

    35ample*

    pair (ocet@ost$tryD(OC ;upport ??;D= Dco$$ecttoD

  • 7/23/2019 Zoc English

    122/151

    ,S;SBet%rn# a #trin which inicate# the operatin #tem an "S ver#ion %ner which !"C i#r%nnin* e i$dows 7

  • 7/23/2019 Zoc English

    123/151

    35ample*

    pair (ocet&%&lenEThe !oc?etScreen() f%nction can 'e %#e to ret%rn character# that are c%rrent$& i#p$a&e in !"C4#termina$ winow It ret%rn# O$enP (255 ma) character# 'einnin from po#ition OP*O&P (Dero'a#e) an* at the riht marin* #ip# to the net $ine witho%t ain a CB or =

    35ample*

    width (ocet5$oD;CRN5!@Dli$e (ocet;cree$K=K= width54

  • 7/23/2019 Zoc English

    124/151

    +oc=loaloeration& RotionsEThi# ro%p of f%nction# a$$ow# permanent #torae of va$%e# in a fi$e 'a#e ata poo$ Thi# can 'e%#e to remem'er va$%e# acro## vario%# #cript r%n# (the operation# are atomic an the& areprotecte aain#t conc%rrent acce##)7o##i'$e operation# are:

    S0-0CT name

    Se$ect a ifferent $o'a$ poo$ (the name wi$$ either 'e %#e to create a fi$e name+$ame,loal.i$iin the %#er ata fo$er or it can 'e a f%$$& %a$ifie fi$e name* eLC:JataJpoo$atL)

    INITC$ear a$$ va$%e# in the $o'a$ #pace

    =0T nameBet%rn# the va$%e with the iven name

    #*T name& alueStore# a va$%e in the #torae poo$ %ner a iven name

    S0T name& alue

    Same a# 7.T

    35ample*

    C"## (ocloal D;#C!D= Dyal;toreD% (ocloalD!D= D#";!7D...C"## (ocloal D;!D= D#";!7D= %

    +oc:e%oardcommand R& timeoutEThi# f%nction a$$ow# a BE #cript to rea etroe# from the termina$ winow It #%pport# the#%'comman# LOC* UNLOCan GETNEBTEA(with ?ETET8E6 &o% can a$#o #pecif& atimeo%t in #econ#)

    ?ETET8E6 ret%rn# a #trin in the form )har(s)an)ode(sh*&t()tr(at

    char:two '&te he n%m'er repre#entin the a#cii coe of the e&sca$code:The phica$ #can coe from the e&'oar (the #can coe can 'e %#e to ientif&f%nctiona$ e #%ch home* e$* f1* f2* etc)shit* ctrlan altare either Kor 1inicatin if the& were he$ own when the primar& e& wa#pre##e

    The eamp$e 'e$ow #how# how the #%'comman# are %#e an how the po##i'$e re#%$t i# #p$it intoit# part# an i#p$a&e the re#%$t in a %#er frien$& form

    35ample*

    Call (oceyoard DUN#OCDret (oceyoardD!N7!D= 3K

  • 7/23/2019 Zoc English

    125/151

    Bey 72Che%Bey;" Dou pressed he%/Bey: Dhe%BeyD/DBey;" D;ca$ code: Dsca$;" D;hit/Ctrl/"lt states: DshitD/DctrlD/Dalt

    +oc-ast-ineEThi# i# a f%nction an ret%rn# the c%rrent $ine of tet when the $a#t !ocait/!ocait+%/!ocaitine#%cce##f%$$& ret%rne (7$ea#e a$#o #ee the !ocBeceive%ff%nction a# an a$ternative to!oca#tine())

    35ample*

    C"## (oc;e$d D"!(TDtimeout (ocait#i$e54 timeoutE6MK (oc#ast#i$eDOD !@N O C"## (ocCo$$ect DIII 3MI6DN

    -ote*

  • 7/23/2019 Zoc English

    126/151

    +oc-oad:e%oard#ro

  • 7/23/2019 Zoc English

    127/151

    35ample*

    C"## (oce$ue$t D

  • 7/23/2019 Zoc English

    128/151

    /Z maBe a receie uer o 2I6 ytes Z/C"## (oc!imeout 6K

    C"## (ocReceie?u 2I6C"## (oc;e$d Dread astractTDC"## (ocait DComma$d,D

    /Z get the result rom the read comma$d a$d Z//Z maBe a larger uer to hold the result o Z//Z a suseWue$t comma$d. Z/ast (ocReceie?uMK96C"## (oc;e$d Dread co$te$tsTDC"## (ocait DComma$d,D

    /Z get the co$te$t a$d disco$ti$ue ueri$g Z/co$t (ocReceie?uK

    /Z "t this poi$t= oth ariales ast a$d co$t will startwith the word DreadD a$d e$d with the character D,D= co$tai$i$gwhateer data was receied etwee$ the comma$d a$d $e%t prompt. Z/

    35ample*

    /Z read the remote e$iro$me$t ariales a$d e%tract the !R alue Z/

    Call (ocReceie?u 2KM8Call (oc;e$d DsetTD

    /Z you will $eed to modiy this to wait or the ZyourZ ow$ prompt here Z/Call (ocait D/Z google or DR77

  • 7/23/2019 Zoc English

    129/151

    A?IT0 /ke%& alue& datarite# OataP to the part of the rei#tr& which i# a##ociate with Ohe&P If OataP i# proviein the form D5ORD:nnnnthe ecima$ va$%e nnnn wi$$ 'e #tore a# BE?G,"B,* otherwi#eata wi$$ 'e #tore a# BE?GS! (#trin)

    ?0(D /ke%& alueBea a va$%e from the rei#tr& part Ohe&P If the rei#tr& va$%e i# in BE?G,"B, format* the

    comman wi$$ ret%rn D5ORD:notherwi#e the #trin from the rei#tr& wi$$ 'e ret%rne

    0N*M /ke%& nBet%rn# the OnPth va$%e name from Ohe&P or [[RROR[[if no #%ch va$%e ei#t#

    C-,S0 /ke%En# acce## to Ohe&P

    35ample*

    hB (ocRegistryDO

  • 7/23/2019 Zoc English

    130/151

    35ample*

    a$swer (ocReWuest#istDt2Sen tetwhenever teti# receive whi$e BE i# proce##in a !oc,e$a& or !ocaitcomman

    < maim%m of 32 Be#pon comman# can 'e active #im%$taneo%#$& Otet1P m%#t not contain

    carriae ret%rn# or $ine fee#

    If teti# omitte or empt& the re#pon#e comman for Otet1P i# c$eare If tetFi# empt& (LL) a$$re#pon#e# are c$eare

    35ample*

    /Z ait or XComma$dX a$d auto&sBip all possily prompts i$ etwee$ Z/C"## (ocRespo$d D$terD= DTDC"## (ocRespo$d DoreD= DTDtimeout (ocaitDComma$dD/Z Clear respo$ders Z/

    C"## (ocRespo$d D$terDC"## (ocRespo$d DoreD

    The a'ove eamp$e wait# %nti$ the tet Comma$di# receive hi$e waitin* a$$ $teran oreprompt# are an#were a%tomatica$$& '& #enin Enter

  • 7/23/2019 Zoc English

    131/151

    Interna$$& the tet i# proce##e a# a #erie# etroe# rather than #enin it irect$& thro%h thecomm%nication channe$ The #en #pee i# 'a#e on the tet #enin option int "ption#@Se##ion7rofi$e@Tran#ferIf &o% nee a fa#ter* more irect ver#ion of thi# comman* p$ea#e %#e!ocSenBaw

    35ample*

    /Z se$d ]O U;R+e$ter,Z/C"## (oc;e$d D]O U;RTD

    35ample*

    /Z U$i% logi$ ;eWue$ce Z/C"## (ocait Dlogi$:D

    C"## (oc;e$d DharryTDC"## (ocait Dpassword:DC"## (oc;e$d DalohomoraTD

    35ample*

    /Z 32JK/I2IK e%ample Z/C"## (oc;e$d D4reddieDC"## (oc;e$dmulatio$ey DNew#i$eDC"## (oc;e$d Dlm ;treetD

    C"## (oc;e$dmulatio$ey D$terD

    /Z 32JK/I2IK same as aoe Z/C"## (oc;e$d D4reddieTlm ;treetT(D

    See also* !ocSenBaw* !ocSenEm%$ation8e&

    +ocSend0mulation:e% ke%nameSen the coe that repre#ent# a #pecia$ e& in the c%rrent termina$ em%$ation* e #en f1 from aAT220 em%$ation

    The e& name# are e#cri'e in the8e& ame#

  • 7/23/2019 Zoc English

    132/151

    #trin f%nction# $ie 2C(OhecoeP) or !ocCtr$Strin to create a corre#ponin character va$%e#(e 2C(0,) for Enter)

    !ocSenBaw ma& 'e %#ef%$ if &o% want to #en 'inar& ata to a ho#t =or eamp$e* if &o% want to#en M2 K1 KK KI M1 M3 he%thro%h the comm%nication channe$* &o% can o thi# a# in the2n part of the eamp$e 'e$ow

    35ample*

    C"## (oc;e$dRaw D#ogi$DLL72CKd /Z #ogi$+e$ter, Z/

    /Z !hree times the same: Z/C"## (oc;e$dRaw 72CM2K1KKKIM1M3C"## (oc;e$dRaw D?DLL72CK1LL72CKKLL72CKILLD"CDC"## (oc;e$d D?T"TAT"CD

    +ocSessionTasucommand& arametersE

    Thi# f%nction a$$ow# a BE #cript to acce## or manip%$ate #e##ion ta'# The #%'comman efine#the action* the parameter# epen on the #%'comman

    C-,S0(T09ITC$o#e the c%rrent #e##ion ta' when the #cript eit#

    35ample*C"## (oc;essio$!a DC#O;"!75!D

    C-,S0T(@C$o#e the #e##ion ta' with the iven ine (Dero for the $eftmo#t ta' or -1 for the c%rrent ta')

    35ample*C"## (oc;essio$!a DC#O;!"?D= 2

    =0TC,*NTBet%rn# the n%m'er of #e##ion ta'#

    35ample*howma$y (oc;essio$!aD!COUN!D

    =0TC*??0NTIND09Bet%rn# the ine of the ta' in which thi# #cript i# r%nnin

    35ample*myid% (oc;essio$!aD!CURRN!5N7D

    =0TIND09@;N(M0& nameBet%rn# the ine of the fir#t ta' that ha# a iven tit$e or -1 if none wa# fo%n

    35ample*srid% (oc;essio$!aD!!5N7?N"D= Dy ;ererD

    =0TN(M0& inde>Bet%rn the name of the ta' with a iven ine (Dero for the $eftmo#t ta') from the 1#tparameter

  • 7/23/2019 Zoc English

    133/151

    35ample*$ame (oc;essio$!aD!N"D= &1

    N0AS0SSI,N& title& actiate& sessionro

  • 7/23/2019 Zoc English

    134/151

    S0TC,-,?& inde>& colorSet# the co$or of the ta' with a iven ine The OineP parameter inicate# the #e##ion (foretai$# #ee the e#cription of the OineP parameter for ?ET& titleSet# the name of the ta' with a iven ine The OineP parameter inicate# the #e##ion (for

    etai$# #ee the e#cription of the OineP parameter for ?ET

  • 7/23/2019 Zoc English

    135/151

    +ocSet(uto(ccet 1V+ae the comm%nication metho accept incomin ca$$#

    35ample*

    C"## (oc;et"uto"ccept 1 /Z accept calls Z/

    +ocSetDeice name R& dearm7strin!Chane the comm%nication metho (evice) The name m%#t 'e one of the name# from the $i#t in"ption#@Se##ion 7rofi$e@,evice

    The optiona$ evparm-#trin contain# option#* which confi%re the evice (#ee !ocSet,evice"pt#for information a'o%t how to o'tain a evparm-#trin) If the evice parameter# are omitte* !"C%#e# the option# which are #et for the evice in the c%rrent$& active #e##ion profi$e

    35ample*

    C"## (oc;eteice D!#N!D

    C"## (ocCo$$ect Ds.cha$$el1.comD

    C"## (oc;eteice D;R5"#/OD= D*1-CO3:IJ6KK&8N1L9L3IKD

    +ocSetDeice,ts arameter7strin!Thi# i# a rather arcane comman* which #et# the option# for a comm%nication metho (evice)irect$& from BE owever* #ince the option# #