home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / unix / question / 9521 < prev    next >
Encoding:
Text File  |  1992-07-29  |  1.6 KB  |  38 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!convex!news.utdallas.edu!corpgate!brtph560!bnr.ca!trice
  3. From: trice@bnr.ca (Tony Rice P885)
  4. Subject: passing to an open TELNET session 
  5. Message-ID: <1992Jul29.135821.28197@brtph560.bnr.ca>
  6. Keywords: telnet, UNIX, modem, script 
  7. Sender: news@brtph560.bnr.ca (Usenet News)
  8. Organization: Bell-Northern Research, BNR-RTP 
  9. Distribution: usa
  10. Date: Wed, 29 Jul 1992 13:58:21 GMT
  11. Lines: 25
  12.  
  13.  
  14. I am trying to automate something using telnet and am having troubles.
  15.  
  16. I would like to telnet to a modem hanging off of our LAN, dial a number
  17. and hang up.  The problem is once I connect, using TELNET, to this modem
  18. telnet goes into an interactive mode which makes things like:
  19.  
  20. cat "atdt 9,555121" | telnet <modem address>
  21. or
  22. telnet <modem address> < echo "atdt 9,5551212"
  23.  
  24. not work at all.  Even putting the connection command (open <modem address>)
  25. a file with the atdt command and redirecting or piping that does not work.
  26.  
  27. Any ideas on how to pass stuff to an open telnet session?
  28.  
  29.  
  30. -- 
  31. /--------------------------------------------------------------------------\
  32. |Tony Rice                              | Disclaimer: Opinions are my own  | 
  33. |System Development Environment Support |             not that of BNR or   |
  34. |BNR, Research Triangle Park            |             Northern Telecom     |
  35. |                                 ______|______                            |
  36. |internet: trice@bnr.ca           |"Go Hokies"|                            |
  37. \--------------------------------------------------------------------------/
  38.