You are not logged in.

#1 2015-05-25 17:08:47

chikinn
Member
Registered: 2014-04-09
Posts: 42

xdotool command chaining: "unknown command"

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

#2 2015-05-25 18:45:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: xdotool command chaining: "unknown command"

xdotool key --window $(xdotool search --pid 27348) u

works for me.

Offline

#3 2015-05-25 18:48:24

chikinn
Member
Registered: 2014-04-09
Posts: 42

Re: xdotool command chaining: "unknown command"

That's a good workaround, but I wonder why the command chaining described in the manual is failing.

Offline

#4 2015-05-25 19:27:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: xdotool command chaining: "unknown command"

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

Board footer

Powered by FluxBB