Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   expect does not expect anything (http://www.linux-archive.org/debian-user/403810-expect-does-not-expect-anything.html)

Mike Bird 07-25-2010 02:51 AM

expect does not expect anything
 
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-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 201007241951.28660.mgb-debian@yosemite.net">http://lists.debian.org/201007241951.28660.mgb-debian@yosemite.net

Aaron Toponce 07-26-2010 11:38 AM

expect does not expect anything
 
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
"
> 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 including the word "keys" will not be helpful

Why?

--
. O . O . O . . O O . . . O .
. . O . O O O . O . O O . . O
O O O . O . . O O O O . O O O


All times are GMT. The time now is 01:43 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.