[TAG] Sending a keystroke to remote application
Nick Urbanik
nicku at vtc.edu.hk
Thu Jul 15 10:48:34 MSD 2004
On Thu, Jul 15, 2004 at 08:28:56AM +0530, Kapil Hari Paranjape wrote:
> Hello,
>
> On Thu, Jul 15, 2004 at 02:24:55AM +0800, Nick Urbanik wrote:
> > I am backing up my machine at work with Mondoarchive
> > http://www.mondorescue.org/ A great program! I ran the program at
> > work, so the terminal interface to the program is there, not here. My
> > friend put in a new DVD into the DVD writer, and now, after everyone
> > has gone home, I am looking at the log /var/log/mondo-archive.log (via
> > ssh), which says:
> >
> > I am about to burn DVD #11 of the backup set. Please insert DVD and
> > press Enter.
> >
> > My question:
> > How can I send the "\r" to the remote application?
>
> In case the remote application is running in an X-window, you could
>
> (a) install "rfb" or "x11vnc" on the remote machine.
> (b) start x11vnc on the remote machine.
> (c) install a vnc viewer on the local machine.
> (d) start the vnc viewer on the local machine.
> (e) make the appropriate changes to the remote application.
>
> This is admittedly a very brief summary. You must also insert the step
> (a+b)/2 which consists of reading the documentation for vnc.
>
> If you do not have the application running in an X-window but on the
> console then there is also a vnc server for the console
> somewhere...(mumbles and runs "apt-cache search vnc")...ah, there it is
>
> Package: linuxvnc
> Description: A VNC server to monitor a tty
> With linuxvnc you can export your currently running text
> sessions to any VNC client. So it can be useful, if you want to
> move to another computer without having to log out and if
> you've forgotten to attach a 'screen' session to it, or to help
> a distant colleague to solve a problem.
That looks like the solution! I thought it may be very difficult to
do this without starting modoarchive in a screen session. I will
investigate how to use this. Thank you.
> If fd0 has been closed then you are truly without any option except kill
> <proc-number>. You are also stuck with an application that is making
> the mistake of waiting for a read without having an open input source!
--
Nick Urbanik RHCE nicku(at)vtc.edu.hk
Proud member of the Dept. of Information & Communications Technology,
Home of Visual Paradigm: Jolt Productivity Award winner, programmed
by our own graduates! Tel: (852) 2436 8576 Fax: (852) 2436 8526
GPG: 7FFA CDC7 5A77 0558 DC7A 790A 16DF EC5B BB9D 2C24 ID: BB9D2C24
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.linuxgazette.net/mailman/private/tag/attachments/20040715/7465b715/attachment-0001.pgp
More information about the TAG
mailing list