How do I script-->interactive "CONNECT"-->script? - Protocols

This is a discussion on How do I script-->interactive "CONNECT"-->script? - Protocols ; I have a need to kick off a kermit script in ckermit, then, if I see a certain string pattern I need to go interactive (on the comm stream) and then switch back to the script when I recognize another ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: How do I script-->interactive "CONNECT"-->script?

  1. How do I script-->interactive "CONNECT"-->script?

    I have a need to kick off a kermit script in ckermit, then, if I see a
    certain string pattern I need to go interactive (on the comm stream) and
    then switch back to the script when I recognize another string pattern.
    What I need to do is have a script run automatically but if the prompt for
    the user to change their password is seen, I need to take the session
    interactive (typical CONNECT scenario) and allow the user to change their
    password with the remote service, and then (ideally) when a "success"
    message is seen, resume the script and carry on. TERM (from Century
    Software) has a "TERMINAL" command that does just this. With HIPAA and
    healthcare, many services (insurance companies in particular) require unique
    userids and passwords and require they be changed on a pseudo-regular basis
    (30-45 days). Nothing consistent (of course!), so I need to have the script
    handle this. What we do with TERM (in another scenario - and TERM isn't an
    option for this situation) is start the TERM script and then when the login
    prompt is recognized, we use the TERMINAL command to switch the session
    interactive so that the user can login (and change the password should that
    pop up during any particular session). When the remote service main prompt
    is recognized, the TERM script resumes immediately after the TERMINAL
    command.

    Thanks!

    Mark

    ______________________________________________
    Mark J. Bailey Jobsoft Design and Development, Inc.
    277 Wilson Pike Circle, Suite 105, Brentwood, TN 37027
    EMAIL: mjb@jobsoft.com WEB: http://www.jobsoft.com/
    Medimation / CardShot(tm) - http://www.medimation.com/
    615-425-0932x20 FAX:615-425-0935 CELL:615-308-9099

    CONFIDENTIALITY NOTICE: This email message and any attachments are for the
    sole use of the intended recipient(s) and may contain proprietary,
    confidential, trade secret or privileged information. Any unauthorized
    review, use, disclosure or distribution is prohibited and may be a violation
    of law. If you are not the intended recipient or a person responsible for
    delivering this message to an intended recipient, please contact the sender
    by reply email and destroy all copies of the original message.



  2. Re: How do I script-->interactive "CONNECT"-->script?

    Help is built into C-Kermit. Try typing "HELP CONNECT" and you will
    get something similar to this. (exact output is platform dependent)

    Syntax: CONNECT (or C, or CQ) [ switches ]
    Connect to a remote computer via the serial communications device
    given in
    the most recent SET PORT command, or to the network host named in the
    most
    recent SET HOST command. Type the escape character followed by C to get
    back to the C-Kermit prompt, or followed by ? for a list of CONNECT-mode
    escape commands. You can also assign the \Kexit verb to the key or
    key-combination of your choice; by default it is assigned to Alt-x.

    Other switches include:

    /TRIGGER:string
    One or more strings to look for that will cause automatic return to
    command mode. To specify one string, just put it right after the
    colon, e.g. "/TRIGGER:Goodbye". If the string contains any spaces, you
    must enclose it in braces, e.g. "/TRIGGER:{READY TO SEND...}". To
    specify more than one trigger, use the following format:

    /TRIGGER:{{string1}{string2}...{stringn}}

    Upon return from CONNECT mode, the variable \v(trigger) is set to the
    trigger string, if any, that was actually encountered. This value, like
    all other CONNECT switches applies only to the CONNECT command with which
    it is given, and overrides (temporarily) any global SET TERMINAL TRIGGER
    string that might be in effect.

    /IDLE-LIMIT:number
    The number of seconds of idle time, after which Kermit returns
    automatically to command mode; default 0 (no limit).

    /IDLE-INTERVAL:number
    The number of seconds of idle time, after which Kermit automatically
    transmits the idle string.

    /IDLE-STRING:string
    The string to transmit whenever the idle interval has passed.

    /TIME-LIMIT:number
    The maximum number of seconds for which the CONNECT session may last.
    The default is 0 (no limit). If a nonzero number is given, Kermit
    returns
    automatically to command mode after this many seconds.

    Your escape character is Ctrl-] (ASCII 29, GS)



    Mark J. Bailey wrote:

    > I have a need to kick off a kermit script in ckermit, then, if I see a
    > certain string pattern I need to go interactive (on the comm stream) and
    > then switch back to the script when I recognize another string pattern.
    > What I need to do is have a script run automatically but if the prompt for
    > the user to change their password is seen, I need to take the session
    > interactive (typical CONNECT scenario) and allow the user to change their
    > password with the remote service, and then (ideally) when a "success"
    > message is seen, resume the script and carry on. TERM (from Century
    > Software) has a "TERMINAL" command that does just this. With HIPAA and
    > healthcare, many services (insurance companies in particular) require unique
    > userids and passwords and require they be changed on a pseudo-regular basis
    > (30-45 days). Nothing consistent (of course!), so I need to have the script
    > handle this. What we do with TERM (in another scenario - and TERM isn't an
    > option for this situation) is start the TERM script and then when the login
    > prompt is recognized, we use the TERMINAL command to switch the session
    > interactive so that the user can login (and change the password should that
    > pop up during any particular session). When the remote service main prompt
    > is recognized, the TERM script resumes immediately after the TERMINAL
    > command.
    >
    > Thanks!
    >
    > Mark
    >
    > ______________________________________________
    > Mark J. Bailey Jobsoft Design and Development, Inc.
    > 277 Wilson Pike Circle, Suite 105, Brentwood, TN 37027
    > EMAIL: mjb@jobsoft.com WEB: http://www.jobsoft.com/
    > Medimation / CardShot(tm) - http://www.medimation.com/
    > 615-425-0932x20 FAX:615-425-0935 CELL:615-308-9099
    >
    > CONFIDENTIALITY NOTICE: This email message and any attachments are for the
    > sole use of the intended recipient(s) and may contain proprietary,
    > confidential, trade secret or privileged information. Any unauthorized
    > review, use, disclosure or distribution is prohibited and may be a violation
    > of law. If you are not the intended recipient or a person responsible for
    > delivering this message to an intended recipient, please contact the sender
    > by reply email and destroy all copies of the original message.
    >
    >


    --
    -----------------
    This e-mail account is not read on a regular basis.
    Please send private responses to jaltman at mit dot edu

+ Reply to Thread