Sample Header Ad - 728x90

Failed attempt to expect and send

0 votes
1 answer
61 views
I'm trying to write a script which git clone. my script: git clone ssh://git@domain.com/myproject.git expect "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 ?
Asked by discCard (101 rep)
Dec 15, 2020, 12:38 PM
Last activity: Dec 17, 2020, 05:18 PM