``` #!/bin/bash des_pass=testtest expect-c" spawnscptarget/aaa-0.0.1.warroot@192.168.1.30:/home/GameUser/MagicvesselUserWeb/aaa-release.war expect\"password:\" send\"${des_pass}\r\" expecteof "原文链接:https://www.f2er.com/bash/392612.html
``` #!/bin/bash des_pass=testtest expect-c" spawnscptarget/aaa-0.0.1.warroot@192.168.1.30:/home/GameUser/MagicvesselUserWeb/aaa-release.war expect\"password:\" send\"${des_pass}\r\" expecteof "原文链接:https://www.f2er.com/bash/392612.html