110 reputation
4
bio website
location
age
visits member for 2 years, 3 months
seen Jul 22 at 20:59

Jul
3
comment SSH + Sudo + Expect in Bash script: Run command with sudo in remote machine
It turns out that the brackets in the \"[sudo]\" option were messing it up. I finally got it working with the spawn area looking like: spawn /usr/bin/ssh -t zignage@$remoteMachine \"/usr/bin/sudo /usr/bin/dpkg -i /home/zignage/Documents/$debToInstall\" and scaping the braces in sudo (\"\[sudo\]\")