Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!seismo!ut-sally!utah-cs!utah-gr!uplherc!nrc-ut!nrcvax!ccsi!craig From: craig@ccsi.UUCP Newsgroups: comp.unix.questions Subject: Re: stty 0 Message-ID: <124@ccsi.UUCP> Date: Thu, 26-Mar-87 15:15:10 EST Article-I.D.: ccsi.124 Posted: Thu Mar 26 15:15:10 1987 Date-Received: Sat, 28-Mar-87 16:50:11 EST References: <869@bc-cis.UUCP> <5914@mimsy.UUCP> <222@quacky.mips.UUCP> Reply-To: craig@ccsi.UUCP (R. Craig Peterson) Followup-To: /dev/null Distribution: na Organization: Canadian Computer Services, Inc., Thousand Oaks, CA Lines: 34 Keywords: stty 0 drops DTR on SYS V Summary: Works on SYS V In article <222@quacky.mips.UUCP> dce@mips.UUCP (David Elliott) writes: >In article <5914@mimsy.UUCP> chris@mimsy.UUCP (Chris Torek) writes: >>In article <869@bc-cis.UUCP> raanan@bc-cis.UUCP (Raanan Herrmann) writes: >>>My question: What does the `stty 0` command do? Does it do anything? >>Most device drivers interpret it as `turn off DTR'. If your modems >>are working and properly connected, and your multiplexor supports DTR, >>this will hang up the line. > >The original question is unclear. In 4.3BSD, the command "stty 0" causes >the baud rate to be set to 0. I assume that Chris is correct in saying >what the device driver does with this (if I don't, Chris will shoot me). > >So, if Raanan needs to add a "hang up the line" function to a shell, >front-end, or other application, he can add code to set the baud rate >to 0 (this is for BSD systems; I'm not sure about System V derivatives). It is the same for System V. I've used many versions, and the've all interpreted 0 baud as turning off DTR to the attached device. All that is with the exception of one machine, however after several conversations with the mfr. its working there too! -- ---- "Next time someone asks you if you're a god, say YES!" - Ghost Busters R. Craig Peterson KB6NFG U.S. SNAIL: CCSI, 187 E. Wilbur Rd. #1, Thousand Oaks, CA 91360 {sdcsvax|hplabs}!sdcrdcf!psivax!nrcvax!ccsi!craig ihnp4!nrcvax!ccsi!craig