From: Wilbur R. J. <wr...@sa...> - 2003-05-27 17:58:22
|
I have been writing a simulator for parallel ftp and find some unexepected behavior on multi line matches. I'm seeing the following in my internal debug output. spawn id(3): Does `pput /tmp/foo/bar /tmp/bar/foo\r\n226 Transfer Complete.(moved = 40).\r\01240 bytes sent in 1.00 seconds (0.04 Kbytes/s)\r\012200 Command Complete.\r\012ftp> ' match: pattern #1: -re `.*\r\n226.*Transfer complete..*\r\012'? No. pattern #2: -re `^226.*Transfer complete..*\r\n'? No. Waiting for new data (10 seconds)... I don't understand why neither of these match. The first expression works fine with the ftp command, but the perl script simulator which produced this output does not match. Could anyone point me to a clue? Another interesting thing to know would be why \n shows as \012 sometimes and \n other times? Thanks -- Wilbur R. Johnson Distributed Decision Support Systems Sandia National Laboratories |