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 #71769 is a reply to message #71768] Thu, 22 July 2010 05:47 Go to previous messageGo to previous message
Dave[5] is currently offline  Dave[5]
Messages: 11
Registered: July 2010
Junior Member
On Jul 22, 2:40 pm, Dave <riebe...@gmail.com> wrote:
> On Jul 22, 2:21 pm, FÖLDY Lajos <fo...@rmki.kfki.hu> wrote:
>
>> On Thu, 22 Jul 2010, Dave wrote:
>>> Ah.  I'm still having trouble logging out of the remote host.  I
>>> detach the screen, but logout still hangs.  :/  Any ideas?
>
>> What does 'ps -flu your_user_name' show before logout?
>
>> Pressing Ctrl-C (or killing the ssh command from an other window) helps
>> sometime. Try it and then login again to check your job's status.
>
>> regards,
>> lajos
>
> As Paulo mentions, I think it has something to do with the X server.
> Ps -flu immediately before logout gives me:
>
> driebel mars 23> ps -flu driebel
> F S UID        PID  PPID  C PRI  NI ADDR SZ WCHAN  STIME TTY
> TIME CMD
> 5 S driebel  26861 26857  0  75   0 - 22568 stext  07:38 ?
> 00:00:00 sshd: driebel@notty
> 0 S driebel  26862 26861  0  85   0 - 17676 rt_sig 07:38 ?
> 00:00:00 tcsh -c /usr/libexec/openssh/sftp-server
> 0 S driebel  26914 26862  0  75   0 - 14031 -      07:38 ?
> 00:00:00 /usr/libexec/openssh/sftp-server
> 1 S driebel  28872     1  0  76   0 -  6444 stext  07:55 ?
> 00:00:00 SCREEN
> 0 S driebel  28873 28872  0  75   0 -  2387 -      07:55 pts/38
> 00:00:00 -usr/bin/tcsh
> 5 S driebel  30715 30711  0  75   0 - 22735 stext  08:36 ?
> 00:00:00 sshd: driebel@pts/16
> 0 S driebel  30738 30715  0  75   0 - 17744 rt_sig 08:36 pts/16
> 00:00:00 -tcsh
> 1 S driebel  30813     1  0  76   0 -  6444 stext  08:37 ?
> 00:00:00 SCREEN
> 0 S driebel  30814 30813  0  76   0 -  2387 -      08:37 pts/41
> 00:00:00 -usr/bin/tcsh
> 0 S driebel  30862 30814 28  79   4 - 84446 643279 08:37 pts/41
> 00:00:07 /opt/rsi/idl/bin/bin.linux.x86_64/idl script_test
> 0 R driebel  30907 30738  0  76   0 -  3674 -      08:38 pts/16
> 00:00:00 ps -flu driebel
> driebel mars 24>
>
> Previously, ctrl-c has indeed unhung logout, but doing so kills the
> remote IDL script.

More info:
I am directing output to a logfile using:
nohup nice /opt/rsi/idl/bin/idl batch_script >& log &

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.

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 05:37:29 PDT 2025

Total time taken to generate the page: 1.35926 seconds