This may seem odd, but I'm trying to start rsync in daemon mode from an ssh connection... ie, something like this: ssh host1 /usr/bin/rsync --daemon --port=9999 --config=/path/to/config.txt the reason why is i need to start it on 40 machines and manually logging into each one is a pain. even with copying and pasting. i'd rather just write a shell script to do it in a loop. anyway it doesn't work. it just prints @RSYNCD: 26 i'm assuming since "ssh host command" doesn't create a tty that rsync gets confused and thinks it is already daemonized. is there any workaround or do i have to just bite the bullet and do this the nasty way. -jsd-
Jon Drukman wrote:> This may seem odd, but I'm trying to start rsync in daemon mode from an > ssh connection... ie, something like this: > > ssh host1 /usr/bin/rsync --daemon --port=9999 --config=/path/to/config.txt > > the reason why is i need to start it on 40 machines and manually logging > into each one is a pain. even with copying and pasting. i'd rather > just write a shell script to do it in a loop. > > anyway it doesn't work. it just prints > > @RSYNCD: 26turned out to be an ssh question more than an rsync question. just do ssh -t host rsync --daemon forces ssh to allocate a pseudotty so rsync has something to detach from. hope this helps somebody out. -jsd-