I try to run gedit from terminal and type some text in a file opened there, but have no success. I try to use gedit; sleep 2; xte -x display 'key k';
command but this one run gedit only(without typing the k char). Can some one chip in me?
Xdotool (no idea what happened to the webpage, here is its source) is great for that:
xdotool key k
And with gedit:
gedit & sleep 2; xdotool key k;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With