ZHAO, BING am Freitag, 28. Oktober 2005 12.37: > Hi, > Is there a way to run unix command in perl? > To be specific, for the ftp command: > 1.ftp ftp.rcsb.org > 2.cd /pub/pdb/data/structures/divided/pdb/ > 3.cd nx > 4.get pdb1nxc.ent.Z > 5.bye > I need to automate this process to ftp get the file > pdb1nxc.ent.Z. thank you.
yes, perldoc system perldoc perlop (backticks) several IPC modules ...but you'll save a headache using the Net::FTP module, see http://search.cpan.org/search?query=Net%3A%3AFTP&mode=module hth, joe -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>