[comp.unix.misc] Is there a program like telnet, but driven by a script?

hugh@slee01.srl.ford.com (Hugh Fader) (10/02/90)

I need to duplicate UNIX-to-UNIX rsh functionality going UNIX-to-VMS.
I am running a Sun Sparcstation and can communicate with the VAX using
telnet and ftp via an ULTRIX gateway (the VAX only runs DECNET). One
solution to my problem would be a telnet-like program which accepts a
script containing expect/send pairs much like UUCP and some PC
communications programs. Does such a program exist?

I would also appreciate any suggestions of alternate solutions.

Thanks in advance.

--
Hugh Fader
hugh@slee01.srl.ford.com

emv@math.lsa.umich.edu (Edward Vielmetti) (10/07/90)

In article <26797@fmsrl7.UUCP> hugh@slee01.srl.ford.com (Hugh Fader) writes:

   I need to duplicate UNIX-to-UNIX rsh functionality going UNIX-to-VMS.
   I am running a Sun Sparcstation and can communicate with the VAX using
   telnet and ftp via an ULTRIX gateway (the VAX only runs DECNET). One
   solution to my problem would be a telnet-like program which accepts a
   script containing expect/send pairs much like UUCP and some PC
   communications programs. Does such a program exist?

See "expect" from Don Libes, ftp'able from durer.cme.nist.gov.  An extract
from the man page:

     expect is a program that "talks" to other  interactive  pro-
     grams  according  to a script.  Following the script, expect
     knows what can be expected  from  a  program  and  what  the
     correct  response  should  be.  An interpreted language pro-
     vides branching and high-level control structures to  direct
     the  dialogue.   In  addition, the user can take control and
     interact directly when desired, afterward returning  control
     to the script.

Since this is a program which isn't necessarily related to tcp/ip, please
follow up to comp.unix.misc.

--Ed

Edward Vielmetti, U of Michigan math dept <emv@math.lsa.umich.edu>
moderator, comp.archives