Из другого терминала посылаем ему сообщение:user@debian:~$ xwininfo
xwininfo: Please select the window about which you
would like information by clicking the
mouse in that window.
xwininfo: Window id: 0x6664b6 "user@debian: ~"
Absolute upper-left X: 4
Absolute upper-left Y: 528
Relative upper-left X: 14
Relative upper-left Y: 40
Width: 896
Height: 280
Depth: 32
Visual: 0x6a3
Visual Class: TrueColor
Border width: 0
Class: InputOutput
Colormap: 0x600005 (not installed)
Bit Gravity State: NorthWestGravity
Window Gravity State: NorthWestGravity
Backing Store State: NotUseful
Save Under State: no
Map State: IsViewable
Override Redirect State: no
Corners: +4+528 -380+528 -380-216 +4-216
-geometry 110x14+-10+488
user@debian:~$
Shell
$ xdotool key --window 0x6664b6 KP_Enter
$
Shell
$ xdotool windowactivate 0x6664b6
$
В скрипте тоже это дело не работает:
Код: Выделить всё
#!/bin/bash
xdotool windowactivate 0x6664b6
sleep 10
xdotool key --window 0x6664b6 KP_Enter