Re: ssh into remote nodes, do mulitple commands



On Tue, 29 Jan 2008 17:32:41 -0800 (PST), Nene <rodbass63@xxxxxxxxx>
wrote:

Hello,

I'm trying to use Net::SSH to ssh into 3 nodes and move/copy files
with File::Copy. For now, I scripted it to find files of a certain
age and move them.
The $cmd variable is working, but when I try to move the files, it
errors with copy failed. Please critique or suggest a better way.
Thanks in advance!!!!

Try Net::SSH2 , its better. Sftp is incorporated
into it, and you probably want to use it for file transfers.

See:
http://perlmonks.org?node_id=569657

also ask on the SSH maillist
http://lists.sourceforge.net/lists/listinfo/ssh-sftp-perl-users

zentara

--
I'm not really a human, but I play one on earth.
http://zentara.net/japh.html
.



Relevant Pages

  • ssh into remote nodes, do mulitple commands
    ... I'm trying to use Net::SSH to ssh into 3 nodes and move/copy files ... age and move them. ... my $host = $ESP; ...
    (comp.lang.perl.misc)
  • Re: Sound via ssh
    ... I've a Debian machine with a sound card. ... mp3 with libOSS.so. ... ssh from another machine with X ... play music via Esound output, it can be configured in XMMS. ...
    (Debian-User)
  • Re: SSH
    ... > this point on, OpenSSH and SSH, respectively). ... OpenSSH plays quite well with SSH clients IME, ... SSH servers do not play well at all with OpenSSH clients. ... When using an SSH client to ...
    (comp.unix.solaris)
  • Re: [kde-linux] Sound over ssh?
    ... Does your uni-terminal have access to an ssh client? ... Or simply try running ssh with the help option, by entering: ... why don't you just download the music you need to play and play it ...
    (KDE)
  • Re: How can I copy text from the NAO java client?
    ... Quoting Edward: ... to play? ... ssh and cut and paste the text. ... David Damerell Distortion Field! ...
    (rec.games.roguelike.nethack)