parsing an ftp stream
[email protected] (Ron Rohrssen) Thu, 08 Mar 2001 13:13:39 -0600
| Newsgroups | perl.libnet |
|---|---|
| Message-ID | <[email protected]> |
--Boundary_(ID_p0oklWq2sFuuz3iJurIGyA) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit Hello, I've been trying to research the possibility of opening an ftp connection to an ftp host and parsing the ftp stream prior to writing to disk. We are ftp'ing some multi-gigabyte files to PC servers. But, we only need a few fields from each of the records in this file. If we could strip out the fields in the connection stream prior to writing to disk, the app would be much faster. And, our disk requirements would be considerably smaller. I've found some documentation that talks about the net::ftp object as using socket and net::cmd. This seems to imply that it may be possible to accomplish what I want to do. (Of course this all depends on the ftp capability of the host server.) Has anyone written anything like this? Or, do you know where I can find examples that show how this may be done? Ron Rohrssen loc: 872 T2-R1 500 2nd Ave. SE Cedar Rapids IA 52401 [email protected] --Boundary_(ID_p0oklWq2sFuuz3iJurIGyA) Content-type: text/html; charset=iso-8859-1 Content-transfer-encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 5.50.4207.2601" name=3DGENERATOR></HEAD> <BODY> <DIV><SPAN class=3D950250819-08032001><FONT face=3DArial size=3D2>Hello, = I've been=20 trying to research the possibility of opening an ftp connection to an = ftp host=20 and parsing the ftp stream prior to writing to disk. We are ftp'ing some = multi-gigabyte files to PC servers. But, we only need a few fields from = each of=20 the records in this file. If we could strip out the fields in the = connection=20 stream prior to writing to disk, the app would be much faster. And, our = disk=20 requirements would be considerably smaller.</FONT></SPAN></DIV> <DIV><SPAN class=3D950250819-08032001><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D950250819-08032001><FONT face=3DArial size=3D2>I've = found some=20 documentation that talks about the net::ftp object as using socket and = net::cmd.=20 This seems to imply that it may be possible to accomplish what I want to = do. (Of=20 course this all depends on the ftp capability of the host=20 server.)</FONT></SPAN></DIV> <DIV><SPAN class=3D950250819-08032001><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><SPAN class=3D950250819-08032001><FONT face=3DArial size=3D2>Has = anyone written=20 anything like this? Or, do you know where I can find examples that show = how this=20 may be done?</FONT></SPAN></DIV> <DIV><SPAN class=3D950250819-08032001><FONT face=3DArial=20 size=3D2></FONT></SPAN> </DIV> <DIV><FONT face=3D"Lucida Handwriting" size=3D4>Ron = Rohrssen</FONT></DIV> <DIV><FONT face=3D"Calisto MT">loc: 872 T2-R1</FONT></DIV> <DIV><FONT face=3D"Calisto MT">500 2nd Ave. SE</FONT></DIV> <DIV><FONT face=3D"Calisto MT">Cedar Rapids IA 52401</FONT></DIV> <DIV><FONT face=3D"Calisto MT"><A=20 href=3D"mailto:[email protected]">[email protected]</A></FONT= ></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV></BODY></HTML> --Boundary_(ID_p0oklWq2sFuuz3iJurIGyA)--