Parke
2018-Oct-10 18:53 UTC
Is there a way to get an rsync client to communicate over stdin/stdout?
Hello, Is there a way to get an rsync client to communicate over stdin/stdout? I found these two emails from 2004. The second email mentions that there might be a patch. https://www.mail-archive.com/rsync at lists.samba.org/msg09392.html https://www.mail-archive.com/rsync at lists.samba.org/msg09427.html Is anyone aware of a way to do this? Or of a published patch that does it? I figured I would ask before modifying the rsync source code myself. (Obviously, there would need to be some mechanism for the rsync client to output the command line arguments for the rsync server. My use case is I have a Python script creating and managing pipes. Python will Popen the rsync client, and then I want the rsync client to use the pipes [probably stdin and stdout] given to it by Python.) Cheers, Parke
Kevin Korb
2018-Oct-10 18:56 UTC
Is there a way to get an rsync client to communicate over stdin/stdout?
Take a look at the lsh scripts that come with rsync. On 10/10/2018 02:53 PM, Parke via rsync wrote:> Hello, > > Is there a way to get an rsync client to communicate over stdin/stdout? > > I found these two emails from 2004. The second email mentions that > there might be a patch. > > https://www.mail-archive.com/rsync at lists.samba.org/msg09392.html > https://www.mail-archive.com/rsync at lists.samba.org/msg09427.html > > Is anyone aware of a way to do this? Or of a published patch that does it? > > I figured I would ask before modifying the rsync source code myself. > > (Obviously, there would need to be some mechanism for the rsync client > to output the command line arguments for the rsync server. My use > case is I have a Python script creating and managing pipes. Python > will Popen the rsync client, and then I want the rsync client to use > the pipes [probably stdin and stdout] given to it by Python.) > > Cheers, > > Parke >-- ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., Kevin Korb Phone: (407) 252-6853 Systems Administrator Internet: FutureQuest, Inc. Kevin at FutureQuest.net (work) Orlando, Florida kmk at sanitarium.net (personal) Web page: https://sanitarium.net/ PGP public key available on web site. ~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._., -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 195 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/rsync/attachments/20181010/921dbc53/signature.sig>
Parke
2018-Oct-10 19:09 UTC
Is there a way to get an rsync client to communicate over stdin/stdout?
On Wed, Oct 10, 2018 at 11:57 AM Kevin Korb via rsync <rsync at lists.samba.org> wrote:> Take a look at the lsh scripts that come with rsync.I find two scripts: lsh (in Perl) and lsh.sh. I don't think they do want I want. The both look like remote shell substitutes. Am I wrong about this? I want the rsync client to just use its stdin and stdout. Any option whereby the rsync client spawns a server via a remote shell program will probably not work for me. Cheers, Parke