On Fri, 2005-10-28 at 03:37 -0700, ZHAO, BING wrote:
> 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
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:[EMAIL PROTECTED]
Sent: sexta-feira, 28 de Outubro de 2005 11:37
Cc: beginners@perl.org
Subject: about running uni
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
>
Have a look at Net::FTP. It can do all that your asking.
I think it's part of the standard distribution.
perldoc Net::FTP
hth.
Dp.
On 28 Oct 2005 at 3:37, ZHAO, BING wrote:
> Hi,
> Is there a way to run unix command in perl?
> To be specific, for the ftp command:
ZHAO, BING wrote:
> Hi,
Hello,
> 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.
perld