daily pastebin goal
59%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top