.......... ........ ...... if($_command eq "getfile") { for my $_entry (@_hosts) { $_pid{$_entry} = $_ssh{$_entry}->rsync_get({async => 1, progress => 1, recursive => 1}, "/home/shagun/test.img", "/home/shivangi/") or warn "rsync_get to $_entry failed\n"; } } elsif($_command eq "putfile") { for my $_entry (@_hosts) { $_pid{$_entry} = $_ssh{$_entry}->rsync_put({async => 1, progress => 1, recursive => 1}, "/home/test.img", "/home/shagun/") or warn "rsync_put to $_entry failed\n"; } } else {...... ..... .....