Quantcast
Channel: Active questions tagged expect - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 157

Failed attempt to expect and send

$
0
0

I'm trying to write a script which git clone.

my script:

git clone ssh://git@domain.com/myproject.gitexpect "Enter passphrase for key..."send "myPassword"read -p "enter..."

and after run it I got:

Cloning into 'myproject'...Enter passphrase for key...: |

and the program is waiting for password now, it seems like 'expect' and 'send' don't work properly.What can be wrong in my script ?


Viewing all articles
Browse latest Browse all 157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>