Re: expect does not expect anything

2010-07-26 Thread Aaron Toponce
On 07/24/2010 07:35 PM, Dirk wrote: > #!/usr/bin/expect -f > > spawn rsync -r --progress a u...@bla.com:/b > expect "assword:" > send "password\r" > expect "hostname" > > why does this script stop while rsync is still transferring? > > (hostname is the name of the host in the prompt) > > and, y

Re: expect does not expect anything

2010-07-24 Thread Mike Bird
On Sat July 24 2010 18:57:57 Dirk wrote: > does not work Ah yes. I should have noticed that you're probably using ssh. Try installing sshpass instead of using expect. When rsync sees expect's sockets it mistakenly thinks it's a daemon. --Mike Bird -- To UNSUBSCRIBE, email to debian-user-re

Re: expect does not expect anything

2010-07-24 Thread Dirk
Mike Bird wrote: > On Sat July 24 2010 18:36:47 Dirk wrote: >> #!/usr/bin/expect -f >> >> spawn rsync -r --progress a u...@bla.com:/b >> expect "assword:" >> send "password\r" >> expect "hostname" >> >> >> why does this script stop while rsync is still transferring? >> >> >> (hostname is the name o

expect does not expect anything

2010-07-24 Thread Dirk
#!/usr/bin/expect -f spawn rsync -r --progress a u...@bla.com:/b expect "assword:" send "password\r" expect "hostname" why does this script stop while rsync is still transferring? (hostname is the name of the host in the prompt) and, yes, it HAS TO BE done using expect... any answer includin

Re: expect does not expect anything

2010-07-24 Thread Mike Bird
On Sat July 24 2010 18:36:47 Dirk wrote: > #!/usr/bin/expect -f > > spawn rsync -r --progress a u...@bla.com:/b > expect "assword:" > send "password\r" > expect "hostname" > > > why does this script stop while rsync is still transferring? > > > (hostname is the name of the host in the prompt) > > >

expect does not expect anything

2010-07-24 Thread Dirk
#!/usr/bin/expect -f spawn rsync -r --progress a u...@bla.com:/b expect "assword:" send "password\r" expect "hostname" why does this script stop while rsync is still transferring? (hostname is the name of the host in the prompt) and, yes, it HAS TO BE done using expect... any answer includin