invoking ftp object with ssh object....

Hi,

I am using Net::SSH::Perl, Net::FTP to loginto remote machines...
I want to 'scp' some files in my local system to the remote machine
remote_1. After that, from the remote_1 i want to upload those files
to an FTP server, remote_2. I can access remote_2 only through
remote1. Please guide me on this..


--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Sooraj S [ Do, 22 Juli 2010 12:44 ] [ ID #2044986 ]

Re: invoking ftp object with ssh object....

On Thursday 22 Jul 2010 13:44:46 Sooraj S wrote:
> Hi,
>
> I am using Net::SSH::Perl, Net::FTP to loginto remote machines...
> I want to 'scp' some files in my local system to the remote machine
> remote_1. After that, from the remote_1 i want to upload those files
> to an FTP server, remote_2. I can access remote_2 only through
> remote1. Please guide me on this..

You can invoke a command-line FTP client (or a Perl command line) on remote_1
to upload the files to remote_2. Net::SSH::Perl will allow you to do that by
running a command on remtoe_1.

Regards,

Shlomi Fish

--
------------------------------------------------------------ -----
Shlomi Fish http://www.shlomifish.org/
Optimising Code for Speed - http://shlom.in/optimise

God considered inflicting XSLT as the tenth plague of Egypt, but then
decided against it because he thought it would be too evil.

Please reply to list if it's a mailing list post - http://shlom.in/reply .

--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Shlomi Fish [ Do, 22 Juli 2010 15:35 ] [ ID #2044987 ]

Re: invoking ftp object with ssh object....

thanks for your reply...u mean to say this?

$t = Net::SSH::Perl->new("remote_1");
$t->login($uname,$paswd);
$t->cmd("ftp remote_2")

-----------


--
To unsubscribe, e-mail: beginners-unsubscribe [at] perl.org
For additional commands, e-mail: beginners-help [at] perl.org
http://learn.perl.org/
Sooraj S [ Fr, 23 Juli 2010 08:56 ] [ ID #2045042 ]
Perl » gmane.comp.lang.perl.beginners » invoking ftp object with ssh object....

Vorheriges Thema: how to sort in perl where the key is the 2nd of 3 components of a
Nächstes Thema: META - Bounces from the list