x11 - Automation using xdotool and Xvfb -


i'm trying automate getting cpu sampler data visualvm on production system. need way automate tasks inside xvfb.

i found xdotool such automation. right have following script:

xvfb $display -pixdepths 32 -screen 0 1280x1024x24 >/dev/null 2>&1 & xpid=$!  echo "before twm" #twm -display $display & gnome-wm &  #$visualvm --openpid $pid_to_open &  echo "before gimp" gimp &  sleep 5 xdotool search "gnu.*" windowactivate windowfocus key alt+f n  sleep 3 display=:0.0 xwd -display :9.0 -root | xwdtopnm | pnmtopng > out.png  qiv out.png 

it should open xvfb, run gimp, , click file->new. when in normal x, when execute script in xvfb looks doesn't pass keyboard events. tested mouse , it's same, xdotool doesn't pass (or xvfb doesn't accept) events mouse.

has encoundered problem , know solution?


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -