comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Batch mode and ssh...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Batch mode and ssh... [message #71765] Thu, 22 July 2010 06:50 Go to previous message
Dave[5] is currently offline  Dave[5]
Messages: 11
Registered: July 2010
Junior Member
On Jul 22, 3:07 pm, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
> On Thu, 22 Jul 2010, Dave wrote:
>> I detach this screen, and then attempt to logout of the remote
>> machine.  Logout hangs, and I kill it using ctrl-C.  This breaks my
>> IDL script, and the logfile tells me why:
>> X connection to localhost:19.0 broken (explicit kill or server
>> shutdown).
>
>> So it definitely has something to do with the X server.  Even if I'm
>> running IDL inside a screen on the remote machine, the X server is
>> still being run on my local laptop.  I confess, this level of window
>> management/X servers is a little beyond my level of computer
>> knowledge.  I don't know how to make the X server be hosted by the
>> remote computer.
>
> The graphical counterpart of screen is Xvnc (vncserver). I use it with
> openSUSE 11.2, but I think other distros are similar:
>
> - login to the remote host
> - vncserver
>      this prints something like:
>      ...
>      New 'X' desktop is remote:1
>      ...
> - logout
>
> On your local machine:
>
> - vncviewer remote:1
> - open a terminal, start your job, ...
>
> After exiting vncviewer, you can turn off your local machine.
>
> regards,
> lajos

SUCCESS! Thanks so much for your help. I used a slightly different
order than you suggested, but it worked, and my script is now
running. And with the X server being on the same machine as the
actual script, it's running MUCH faster than before. It looks to be
on pace to finish in ~2 hours instead of ~2 days.

My method was:
log in to remote machine
start vncserver
logout
log back in (I couldn't get my local vncviewer to find the remote
server)
start vncviewer
open a screen within the vncviewer
run script
detach the screen
close the vncviewer
logout of remote machine
script is still running

I'm not sure if all that is strictly necessary, especially the screen
within the vncviewer, but it works, and that is my primary concern.
I'll worry about elegance later.

Dave
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Simple hack to get $2000 to your home.
Next Topic: Re: Stop and return to caller

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Fri Oct 10 02:25:41 PDT 2025

Total time taken to generate the page: 2.08107 seconds