why xdotool getactivewindow results in XGetWindowProperty[_NET_ACTIVE_WINDOW] failed?
For an unknown reason, I was using wayland when this issue happened...
For another unknown reason, a reboot makes me switch back to X11, and then the issue is finally gone!
how to escape characters in xdotool
Similar problem here:
http://code.google.com/p/semicomplete/issues/detail?id=13#c29
Try:
xdotool type setxkbmap de
xdotool key Return
xdotool type "sh path-to-script/deploy.sh $1"
xdotool key Return
Maybe it works better if you write a script:
#!/bin/bash
xterm -e "ssh myserver \"sh path-to-script/deploy.sh $1\"; sleep 5"
and invoke it like this:
./theAboveScript.sh &
sleep 10
xdotool type "password"
xdotool key Return
Related Topics
Use Awk to Print $0 Using The Same Format for All Columns
Karma Not Found from Maven After Re-Install
Cannot Kill Redis-Server on Linux
Fastest Way to Determine User Permissions in /Etc/Sudoer
Gitlab: You Are Not Allowed to Access Master! After Moving Gitlab to Another Server
Having Linux Persist Memory Changes to Disk
How to Create Files with Special Characters in Linux
How to Stop Page Cache for Disk I/O in My Linux System
Simpler Way to Repeatedly Read Lines and Invoke a Program
Rpm Spec to Require Specific Rhel Release
Gitlab Ce Doesn't Add a Public Key to Authorized_Keys
How to Continue Next Iteration When an Error Occurs in Bash
How to Continously Run a Unix Script in Background Without Using Crontab.
Perl Script to Capture Stderr and Stdout of Command Executed in Back-Quotes
Creating Filename_$(Date %Y-%M-%D) from Systemd Bash Inline Script
Put Graphics on The Screen Without /Dev/Fb0