From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96078613510562.tru64-unix-managers.marc@archive.invalid> From: Keith Lewis Date: Mon, 23 Jun 1997 01:15:26 +0000 To: tru64-unix-managers Subject: SUMMARY: DU 4.0B Problem - chars not delivered to /dev/tty - script bug X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96078613510562 -----BEGIN PGP SIGNED MESSAGE----- Hi Folks, On Thursday I foolishly wrote: - ---------------------------------------------------------------------- There seems to be a problem with keystrokes not being delivered to a process with a read pending on /dev/tty, under DU 4.0b. There are two circumstances in which we have seen this. 1) The operators start an xterm on their workstation, and rsh to a machine with a tape drive, then by means of sudo proceed to run a script called backup with root privs. ... - ---------------------------------------------------------------------- Thanks to Tom Blinn, and everyone else who replied. The problem was a bug in the script. Two processes, the `dd' process and the `rsh' process both had reads outstanding on the keyboard, and all the missing carriage returns had been delivered to the `rsh' process. The script is now modified to say ... rsh dump 0f - < /dev/null | dd of= ... And it seems to be working. I feel very foolish... Keith -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBM63OL3EpE0nRVDfpAQED/gP/WwGXZ6sM4wuXZ/NJq9x4rzMHQvpIrYxn RN789UDr3gLlxgsSdrmcIxGNZ6j8NiamptzkyK1/+kPbWeINBX84Ds1+Tkp3VI1H XowGHScGPtbNKmMG7YNOEGTzirhhEH7i4xKdPOWK6y1/sfVcGxoH31HTkWzNcraF 7YC2UrTaUJQ= =Jg0s -----END PGP SIGNATURE-----