Path: utzoo!attcan!uunet!lll-winken!lll-ncis!helios.ee.lbl.gov!nosc!ucsd!ucbvax!hplabs!hpfcdc!hpfcmr!rdg From: rdg@hpfcmr.HP.COM (Rob Gardner) Newsgroups: comp.sys.hp Subject: Re: rn on hp9000/3xx? Message-ID: <1080026@hpfcmr.HP.COM> Date: 13 Jan 89 22:26:27 GMT References: <1674@helios.ee.lbl.gov> Organization: HP Fort Collins, CO Lines: 30 > When an rn-user replies or follows up to an article, rn (in verbose > Some of these messages seem to be getting truncated or omitted, mainly > those just before or after the shell script. Not the mail message or > the article, understand, these seem ok, but the messages to the user > on the terminal. > > I've found that by putting in little naps (sleep 1 & sleep(1) as approp) > here & there that things come out alrite. It seems silly to have to > do something like this. Does anyone have any idea why this is happening? A fair guess at your trouble: It sounds to me like rn is flushing the tty output upon return from the subshell. Does rn run in 'raw' mode? Does rn change any tty paramaters? If it does, it might be using the TCSETA ioctl to do it, and this might take effect before all the output has gotten out to the terminal. So, it might be doing a TCFLSH, which might account for your truncated output. Instead, rn should use TCSETAW, and drop the TCFLSH. TCSETAW will wait for the output to drain before setting the new paramaters. Rob Gardner hplabs!hpfcmr!rdg Hewlett Packard or rdg%hpfcmr@hplabs.hp.com Fort Collins, Colorado 303-229-2048 80525-9599 "Ask me about Home Brewing"