Path: utzoo!mnetor!uunet!husc6!ncar!ames!pasteur!ucbvax!CITHEX.CALTECH.EDU!carl From: carl@CITHEX.CALTECH.EDU (Carl J Lydick) Newsgroups: comp.os.vms Subject: Re: Clarification .. Message-ID: <880317023019.24a@CitHex.Caltech.Edu> Date: 17 Mar 88 10:48:24 GMT References: <8803141739.AA26848@decwrl.dec.com> Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 46 > > HELP! I would like to know if someone has a program that I can > > use which can read data through a terminal line .. like having a detached > >process that wakes up upon sensing a particular character and reads data sent > >on a terminal line .. It does not really matter if it does CRC or not. ..... > > ....................................................... > > > > Thanks in advance!! > > > > > > Regards, > > nag. > > > Thanx to all those who responded to my above query. Appreciate it. But my > problem is that I am developing an application which will do a variation > of it .. not exactly what KERMIT or any other s/w will achieve. All I need > is a program that sits as a detached process and reads data from a line. I > am trying to avoid going thru some debugging and stuff since I am running short > of time. Would appreciate if someone can donate such a program to me. Thank you > very much in advance. > > please send mail directly to me at SYSTEM%PGG.DEC@DECWRL.DEC.COM Sure. Create the file READ.COM with the contents: $ OPEN/READ FILE TTA0: !Substitute appropriate terminal name $ LOOP: READ/ERR=LOOP RECORD $ GOTO LOOP Then use the command $ RUN/DETACH/INPUT=READ.COM/OUTPUT=NL: SYS$SYSTEM:LOGINOUT Now, you know, and I know, that that's NOT what you want. However, it certainly fits your description of what you want. Now, can you PLEASE tell us EXACTLY what it is you want, instead of uttering generalities and then telling us that what we sent isn't what you wanted? For example, what is this "program" (did you, perhaps, mean SUBROUTINE?) supposed to with the data it's read? Is it supposed to read only full records or is it supposed to do character-at-a-time I/O? What's it supposed to do with end-of-file? How about errors? I've got a number of routines, programs, and procedures that do more or less what you seem to want; depending on what you really want, some of them may even be useful to you; however, I'm not going to dig them up and mail them to you unless you give me a few more hints about what you actually want them to do.