Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!aplcen!jhunix!shan_x@jhuvms.bitnet From: shan_x@jhuvms.bitnet Newsgroups: comp.lang.perl Subject: Reading from STDOUT Keywords: reading from stdout Message-ID: <6182@jhunix.HCF.JHU.EDU> Date: 23 Aug 90 01:24:10 GMT Sender: che_wgp@jhunix.HCF.JHU.EDU Reply-To: shan_x@jhuvms.bitnet Organization: The Johns Hopkins University - HCF Lines: 9 I'm writing a perl script to send file with FTP. To determine the responses from the FTPD, I need to read from STDOUT. I can do this by redirecting STDOUT to a file then read from the file. But this way I have problem to synchronize the two processes. I have to put "sleep(2)" everywhere. Any better solutions? Thanks. X. Shan shan@jhuvms.bitnet