CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Rsync with ssh

 



lsy
Novice

May 22, 2012, 5:32 PM

Post #1 of 2 (2311 views)
Rsync with ssh Can't Post

is perl have a function which can serve like this

Code
ssh host1 "rsync -avz filepath host2:filepath;"

i know i can directly use this command, but i would like the rsync return me the transfer result.


winfinit
User

Jul 13, 2012, 12:52 PM

Post #2 of 2 (1930 views)
Re: [lsy] Rsync with ssh [In reply to] Can't Post

my @out = `rsync -avn /tmp ~/`;
foreach my $row ( @out ) {
print $row;
}

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives