Guest User

Untitled

a guest
Jan 20th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. xdotool key ctrl+alt+t
  2. sleep 3
  3. xdotool type "ssh myserver"
  4. xdotool key Return
  5. sleep 10
  6. xdotool type "password"
  7. xdotool key Return
  8. xdotool type "sh path-to-script/deploy.sh $1"
  9. xdotool key Return
  10.  
  11. xdotool type setxkbmap de
  12. xdotool key Return
  13. xdotool type "sh path-to-script/deploy.sh $1"
  14. xdotool key Return
  15.  
  16. #!/bin/bash
  17. xterm -e "ssh myserver "sh path-to-script/deploy.sh $1"; sleep 5"
  18.  
  19. ./theAboveScript.sh &
  20. sleep 10
  21. xdotool type "password"
  22. xdotool key Return
  23.  
  24. #!/usr/bin/expect -f
  25. spawn ssh myserver;
  26. expect "Password:";
  27. send "passwordn";
  28. expect "me@myserver:~$";
  29. send "sh path-to-script/deploy.sh $argvn";
  30. interact
Add Comment
Please, Sign In to add comment