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.
Thanks!