i hope it's OK to say this on the xdotool mailing list, but wouldn't you
rather just avoid X11 altogether for this task? xdotool might not be
the right tool for the job.
You've got some sort of serial connection to machine X, which you access
by ssh'ing into machine Y; right?
Why bother with X11 at all? Just invoke minicom from your SSH session
directly.
If the problem is that you want the minicom session to be running all
the time, even when you're not logged in, you could just run minicom
from GNU screen and detach before you log out so it stays in the
background -- still, no X11 session required.
And if you are actually talking to a serial console, you can even talk
to it directly from GNU screen, and cut out minicom itself. for
example, if you're using ttyS1 (COM2) at 115200 baud, you'd set up the
initial connection with:
ssh -t $remotehost screen /dev/ttyS1 115200
then when you're ready to disconnect and leave it running, do <Ctrl+a>
<d> to detach the screen session (which will in turn terminate the ssh
session).
When you're ready to reconnect, you'd do:
ssh -t $remotehost screen -x
If you've already thought this through and decided you must use X11 for
some reason, feel free to say so -- i certainly don't know the full
scope of what you need. But from what you've described so far, it seems
to me like getting xdotool involved would just create an extra layer of
problems you'd then have to solve.
Can you explain more about what you're trying to do?
Regards,
--dkg
On 10/06/2010 05:32 PM, Jeanne Petrangelo wrote:i hope it's OK to say this on the xdotool mailing list, but wouldn't you
> I need to automate a brief interaction with a minicom console, from a
> different linux machine ssh'ing in, completely from the command line. The
> minicom console is left open and can be accessed via VNC, if you don't mind
> using human interaction.
rather just avoid X11 altogether for this task? xdotool might not be
the right tool for the job.
You've got some sort of serial connection to machine X, which you access
by ssh'ing into machine Y; right?
Why bother with X11 at all? Just invoke minicom from your SSH session
directly.
And if you are actually talking to a serial console, you can even talk
to it directly from GNU screen, and cut out minicom itself. for
example, if you're using ttyS1 (COM2) at 115200 baud, you'd set up the
initial connection with:
ssh -t $remotehost screen /dev/ttyS1 115200
then when you're ready to disconnect and leave it running, do <Ctrl+a>
<d> to detach the screen session (which will in turn terminate the ssh
session).
When you're ready to reconnect, you'd do:
ssh -t $remotehost screen -x
Can you explain more about what you're trying to do?