Path: utzoo!utgpu!jarvis.csri.toronto.edu!torsqnt!tmsoft!masnet!canremote!perry@macom1.uucp From: perry@macom1.uucp@canremote.uucp (perry@macom1.UUCP) Newsgroups: comp.dcom.modems Subject: Re: Telebit config Question c Message-ID: <89122504055469@masnet.uucp> Date: 21 Dec 89 05:05:00 GMT Organization: Canada Remote Systems Limited, Mississauga, ON, Canada Lines: 33 From: perry@macom1.UUCP (Guru's Inc.) Subj: Telebit config Question c-code uugetty Orga: CENTEL Federal Systems, Reston, VA. 22091-1506 *-*-*-*-* Message continued from prior message *-*-*-*-* dbf = fopen(lock, "r"); fgets(cbuf, 11, dbf); fclose(dbf); if ( !(strncmp(pbuf, cbuf, 10 )) ) { unlink(lock); return; } /* pid=pid */ track("outgoing"); signal( SIGHUP, trap0 ); while (!(access(Lock, 0))) sleep(20); conprint(0); } intread() /*** die if here too often ***/ { track("IR-"); if ( ++i > 40 ) trap0(); } !Xenix end uugin.c Above developed to inhibit login msg to modem/lan device until requested. This sample should give you some ideas, any comments inprovements, etc I would appreciate. --- * Via MaSNet/HST96/HST144/V32 - UN Datacommun./Modems * Via Usenet Newsgroup comp.dcom.modems