This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to get rid of running xterm after a remote x application start ?


Try "nohup xclock < /dev/null &".

SSH is probably waiting for all file descriptors associated with the shell 
to be closed before exiting.  Nohup should redirect stdout and stderr to 
nohup.out, but that leaves stdin still associated with the shell.

Nohup may not be necessary.  You could also try "xclock > /dev/null < 
/dev/null 2>&1 &".





Volker Quetschke <quetschke@scytek.de>
Sent by: cygwin-xfree-owner@cygwin.com
08/19/2004 01:31 PM
Please respond to cygwin-xfree
 
        To:     cygwin-xfree@cygwin.com
        cc: 
        Subject:        Re: how to get rid of running xterm after a remote 
x application start ?


Hi!
> appology if this is not the right place to ask my question.

Well, strictly speaking it is a common *nix question, but as it
points out a problem I usually have I'll give a partial answer.

After looging in to your server try:
$ nohup xclock &

(Use your application instead of xclock ;) ) You will see the
application coming up and you can try to exit your ssh shell now.

This works as desired, but my problem is that exiting ssh with
"exit" never finishes. I have to kill the windows rxvt window.
(I usually use rxvt, I don't know if it would work with ssh from
bash started in cmd.exe)

Volker

> I am using cygwin/x to connect to a remote ssh enabled X server. 
> 
> this script asks user for remote x server name and user name and invoke 
the `ssh -X` command with
> all the info provided. This script starts whenever user runs a xterm. a 
remote x application opens
> after the script run. however, I can't close the local xterm or all the 
remote x applications will
> exit along with it.
> 
> Now my question is, how do i get rid of the local xterm 
window(exit/minimize)? or is there a
> decent way to do the whole thing?
> 
> 
> thanks!
> 
> Qiang
> 
> 
> 
> _______________________________
> Do you Yahoo!?
> Win 1 of 4,000 free domain names from Yahoo! Enter now.
> http://promotions.yahoo.com/goldrush


-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

Attachment: signature.asc
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]