python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Expect if condition with ssh password
I am currently trying to create a script with error handling.
Basically the script tests the ssh connection with this command :
ssh -o BatchMode=yes $machine uname -a
There is 3 potential situation th...
AmelieAudet
Votes: 0
Answers: 1
How to respond to any command line prompts in C
I'm trying to automate the process of doing
git add .
git commit -m "some message"
git push origin master
In C.
I've already done a bash script with Expect
#!/bin/bash
HOME="/home/prx...
prxvvy
Votes: 0
Answers: 1
standard expect works but xargs does not
I am currently trying to improve my script when using snmpwalk and wanted to incorporate using xargs as this would help me gather information from multiple devices at the same time. Taking small steps...
kuroikenshi
Votes: 0
Answers: 1
Bash script using Expect working fine locally but fails in a gitlab-ci job
I'm trying to create a script that retreives a secret from a keepass database.
The script uses Expect to get secret via the keepass cli.
Here after my script:
#!/bin/bash
set +x
entry="$1&qu...
MScastra
Votes: 0
Answers: 0