home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!axion!spuddy!sweh
- From: sweh@spuddy.uucp (Stephen Harris)
- Newsgroups: comp.unix.programmer
- Subject: C-Kermit scripts
- Message-ID: <1992Aug26.110501.2343@spuddy.uucp>
- Date: 26 Aug 92 11:05:01 GMT
- Organization: Spuddy's Public Usenet Domain
- Lines: 33
-
- Many apologies if this is the wrong group, but the only "kermit" groupt I
- could find was comp.protocols.kermit - and this is not a protocol question.
- *Gentle* redirection would be appreciated if I am wrong.
-
- I am writing a script in C-kermit 5A under SunOS 4.1 and have the following
- problem:
- After sending a sequence of characters to the remote end it will either
- reply
- Accepted ##########
- or
- Rejected ##########
-
- I can test for accepted or rejected with "input 5 accepted" "if success" but
- what I also need to know are the ########### which will be different every
- time.
- How can I get these numbers into a variable?
- I have tried obvious things like
- input 5 success
- clear
- input 0 \10
- echo \v(input)
-
- but it doesn't work.
-
- Reading input from the session into a variable must be pretty common....
-
- Any ideas? help please!
- Thanks.
- --
- Stephen Harris
- sweh@spuddy.uucp ...!uknet!axion!spuddy!sweh
-
- * Meeeeow ! Call Spud the Cat on > +44 203 638780 < for free Usenet access *
-