FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 07-25-2010, 02:51 AM
Mike Bird
 
Default 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
 
Old 07-26-2010, 11:38 AM
Aaron Toponce
 
Default 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
 

Thread Tools




All times are GMT. The time now is 10:45 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org