All Questions
4
questions
1
vote
1
answer
7k
views
How do I get my expect statement to not output the stdout of the first command?
What I'm trying to do is execute an ssh command that prints out the /etc/shadow file. Obviously that file requires root or sudo permission, and I don't have root creds, therefore I have to use sudo. ...
1
vote
1
answer
469
views
Automating SSH login gives unresponsive remote-shell, dropping back to client-terminal (without errors)
I have a problem with the tool expect under Ubuntu 14.04 LTS. I want to automate ssh logins to some Sophos UTM Firewalls and evelate my rights directly after with "sudo su -" and the correct password. ...
1
vote
1
answer
2k
views
Expect and sudo timeout
I have a main shell script that prompts the user for his password. I then would like to call an expect script while passing the password to it. This expect script will run 3 sudo commands.
I know the ...
0
votes
1
answer
3k
views
SSH + Sudo + Expect in Bash script: Run command with sudo in remote machine
I am trying to automate the deploy of some .deb packages with an script. I want to execute sudo dpkg -i $myDeb.deb in a list of remote machines I can access with ssh.
I've tried to automate the ...