Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xdotool key ctrl+alt+t
- sleep 3
- xdotool type "ssh myserver"
- xdotool key Return
- sleep 10
- xdotool type "password"
- xdotool key Return
- xdotool type "sh path-to-script/deploy.sh $1"
- xdotool key Return
- xdotool type setxkbmap de
- xdotool key Return
- xdotool type "sh path-to-script/deploy.sh $1"
- xdotool key Return
- #!/bin/bash
- xterm -e "ssh myserver "sh path-to-script/deploy.sh $1"; sleep 5"
- ./theAboveScript.sh &
- sleep 10
- xdotool type "password"
- xdotool key Return
- #!/usr/bin/expect -f
- spawn ssh myserver;
- expect "Password:";
- send "passwordn";
- expect "me@myserver:~$";
- send "sh path-to-script/deploy.sh $argvn";
- interact
Add Comment
Please, Sign In to add comment