You are not logged in.
I'd like to send a keypress ("u") to a terminal with a particular PID (1242).
$ xdotool search --pid 1242 key u
Defaulting to search window name, class, and classname
xdotool: Unknown command: u
It seems the key command is misunderstood as part of the preceding search command.
The two commands work fine separately (it isn't an issue of multiple search results):
$ xdotool search --pid 1242
25165858
$ xdotool key u
u
How do I chain them?
(Edit: xdotool version 3.20150503.1)
Last edited by chikinn (2015-05-25 17:10:57)
Offline
xdotool key --window $(xdotool search --pid 27348) u
works for me.
Offline
That's a good workaround, but I wonder why the command chaining described in the manual is failing.
Offline
Moving to Newbie Corner
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline