Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!sdd.hp.com!hp-pcd!hpfcso!hpfcmgw!hpfcse!hpuerca!jns From: jns@hpuerca.HP.COM (Jeff Squires) Newsgroups: comp.sys.hp Subject: Re: stty on hp9000s300 Message-ID: <1340009@hpuerca.HP.COM> Date: 12 Sep 90 13:43:10 GMT References: <1990Sep11.155337.17413@cunixf.cc.columbia.edu> Organization: Hewlett-Packard NARC -- Atlanta Lines: 28 Hi there -- here is what is going on: 1) the stty(1) command does an open(2) of the device file and then does a termio(7) ioctl to set the appropriate mode -- 2) when the stty(1) command closes the device file the driver sets the modes back to the defaults (300 baud CS8 CLOCAL HUPCL) 3) this is what you are seeing when you do a stty -a < /dev/stuff after setting the port with stty(1) Here is how to fix this under HP-UX : 1) nohup sleep 999999999 < /dev/stuff & 2) stty < /dev/stuff 3) stty -a < /dev/stuff # if you want to check that the port stays # configured the way you set it As long as the sleep(1) command has this port open then the driver will not set the port back to termio(7) defaults. When the sleep expires in 999999999 seconds or is killed then this will happen. You will probably have rebooted by then ...... Hope this helps help offered, but not guaranteed, by me or my employer ...............