rsyncshCopyright (C) 2001 by Martin PoolThis is a quick hack to build an interactive shell around rsync, thesame way we have the ftp, lftp and ncftp programs for the FTPprotocol. The key application for this is connecting to a publicrsync server, such as rsync.kernel.org, change down through and listdirectories, and finally pull down the file you want.rsync is somewhat ill-at-ease as an interactive operation, since everynetwork connection is used to carry out exactly one operation. rsynckind of "forks across the network" passing the options and filenamesto operate upon, and the connection is closed when the transfer iscomplete. (This might be fixed in the future, either by adapting thecurrent protocol to allow chained operations over a single socket, orby writing a new protocol that better supports interactive use.)So, rsyncsh runs a new rsync command and opens a new socket for every(network-based) command you type.This has two consequences. Firstly, there is more command latencythan is really desirable. More seriously, if the connection cannot bedone automatically, because for example it uses SSH with a password,then you will need to enter the password every time. We might evenfix this in the future, though, by having a way to automatically feedthe password to SSH if it's entered once.