RE: about running unix command in perl script



Yes

Example:


system("ftp ftp.rcsb.org ; /pub/pdb/data/structures/divided/pdb/ ; cd nx ; get pdb1nxc.ent.Z ");

By

José Pinto

-----Original Message-----
From: ZHAO, BING [mailto:littleshrimp@xxxxxxxxxxxx]
Sent: sexta-feira, 28 de Outubro de 2005 11:37
Cc: beginners@xxxxxxxx
Subject: about running unix command in perl script

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.

bing

--
To unsubscribe, e-mail: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx
<http://learn.perl.org/> <http://learn.perl.org/first-response>


.