Date: Thu, 7 Dec 2000 12:05:59 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: popen hanging eventually In-Reply-To: <90lmag$b9b$1@nnrp1.deja.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 6 Dec 2000 vonbane AT my-deja DOT com wrote: > pclose returns 4 on every loop after the first one that hangs like this > as well We are getting somewhere. When pclose returns a positive number, it is the exit status of the child program. So you need to understand what does exit status 4 of rsh means; I'd expect that to be explained in the rsh docs. Since rsh is a kind of shell, it might be possible that 4 is coming from dd on the remote machine, so dd's docs might also prove useful.