home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / programm / 4454 < prev    next >
Encoding:
Internet Message Format  |  1992-08-26  |  1.3 KB

  1. Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
  2. From: sweh@spuddy.uucp (Stephen Harris)
  3. Newsgroups: comp.unix.programmer
  4. Subject: C-Kermit scripts
  5. Message-ID: <1992Aug26.110501.2343@spuddy.uucp>
  6. Date: 26 Aug 92 11:05:01 GMT
  7. Organization: Spuddy's Public Usenet Domain
  8. Lines: 33
  9.  
  10. Many apologies if this is the wrong group, but the only "kermit" groupt I
  11. could find was comp.protocols.kermit - and this is not a protocol question.
  12. *Gentle* redirection would be appreciated if I am wrong.
  13.  
  14. I am writing a script in C-kermit 5A under SunOS 4.1 and have the following
  15. problem:
  16. After sending a sequence of characters to the remote end it will either
  17. reply
  18. Accepted ##########
  19. or
  20. Rejected ##########
  21.  
  22. I can test for accepted or rejected with "input 5 accepted" "if success" but
  23. what I also need to know are the ########### which will be different every
  24. time.
  25. How can I get these numbers into a variable?
  26. I have tried obvious things like
  27. input 5 success
  28. clear
  29. input 0 \10
  30. echo \v(input)
  31.  
  32. but it doesn't work.
  33.  
  34. Reading input from the session into a variable must be pretty common....
  35.  
  36. Any ideas?  help please!
  37. Thanks.
  38. -- 
  39.                                Stephen Harris
  40.                sweh@spuddy.uucp    ...!uknet!axion!spuddy!sweh
  41.  
  42.  * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
  43.