I think that XCOPY uses STDERR for some of its on-screen printing. You could try to redirect that to a file and then read that in later:
open(STDERR,">errlog.txt"); should work. -----Original Message----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 2/13/02 6:40 AM Subject: Can't take stdout in w98 xcopy Triyng $x=qx(xcopy a:\\1*.* c:\\tmp); print"\n after \n$x \n before \n"; this is how it looks my dos session -------------------------------------------------------- C:\WINDOWS\Escritorio>perl -w kk.pl 13feb.zip 1 archivos copiados after before -------------------------------------------------------- I think xcopy (and other dos commands, Nbtstat.exe, ...) do not send data to stdout ¿how could i do to catch that data? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -------------------------------------------------------------------------------- This email may contain confidential and privileged material for the sole use of the intended recipient. If you are not the intended recipient, please contact the sender and delete all copies. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]