home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / vmsnet / networks / tcpip / multinet / 2792 < prev    next >
Encoding:
Internet Message Format  |  1993-01-28  |  1.7 KB

  1. Path: sparky!uunet!think.com!sdd.hp.com!hamblin.math.byu.edu!arizona.edu!mvb.saic.com!info-multinet
  2. Newsgroups: vmsnet.networks.tcp-ip.multinet
  3. Subject: Re: Question about MultiNet telnet
  4. Message-ID: <930128084329.44a00857@TGV.COM>
  5. From: adelman@TGV.COM (Kenneth Adelman)
  6. Date: Thu, 28 Jan 93 08:44:50 PST
  7. Organization: Info-Multinet<==>Vmsnet.Networks.Tcp-Ip.Multinet Gateway
  8. X-Gateway-Source-Info: Mailing List
  9. Lines: 30
  10.  
  11. > I'm using MultiNet's telnet to log onto a remote machine and issue some
  12. > commands.  I'd like to set it up so that this process happens automatically
  13. > at night.  I.e:  some sort of batch job starts a telnet session, logs into
  14. > a machine, sends some commands and the output of the whole session is in
  15. > a log file.  I can't figure out how to do this;  ideally I'm looking for
  16. > a script language like many PC terminal emulators offer:
  17.  
  18. > WAIT "Username:"
  19. > SEND "stephen"
  20. > WAIT "Password:"
  21. > SEND "<password>"
  22. > etc...
  23.  
  24. > Does anybody know if this is possible?
  25.  
  26.     No, it isn't. The latest "C" kermit for VMS has this scripting
  27. capability; you could always TELNET/CREATE_NTY and then Kermit
  28. out the NTY device. Note this kermit also has some other problems that
  29. make it a real resource hog.
  30.  
  31. > If there were a way to use telnet through a series of library calls
  32. > then I could accomplish a similar thing using C, but briefly looking
  33. > at the multinet programming documentation I didnt see anything like
  34. > what I'm looking for.  I'm admittedly niave about MultiNet and tcp/ip
  35. > in general so I hope this isnt a RTFM question.  Thanks for any help...
  36.  
  37.     Take a look at the TCPECHOCLIENT.C example in the MultiNet
  38. Programmers' Kit [MULTINET.EXAMPLES].
  39.  
  40.                             Ken
  41.