Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In linux (Ubuntu 10.04) is there a command line way to tell a program to preform an action? Let's say, for example, tell pid 12345 to execute "Ctrl+S" without stealing focus from my current window?

I don't think what I'm looking for is a "macro" because I want it to be executed in the background.


share|improve this question

Here is a previous answer that may help: Adobe's answer to 'What do you use for linux keyboard macros?'

share|improve this answer
It's indeed a macro usage, since I cannot send a command to a window without first bringing it to focus. – Mikhail Dec 22 '11 at 19:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.