expect输入用户名和密码

    技术2024-09-29  47

    需要先安装expect

    #!/bin/bash /usr/bin/expect<<EOF spawn git clone http://192.168.2.252/toolteam/test.git -b 223-docker expect "Username" send "toolrd_ro\r" expect "word" send "Tool_111\r" expect eof EOF
    Processed: 0.009, SQL: 9