Shutting down XWin after session? (-once option)

2006-03-14 Thread Boscolio

I've recently set up my windows machine to open programs off my linux
computer using Cygwin.  I've set up an extremely simple batch file and shell
script so that I can simply click on the batch file and it'll forward a
linux application to my windows machine.

I want to replicate opening a program normally in windows, so I'm using the
-multiwindow option in XWin.

So, after I run a linux application and close it, I want XWin to shut down
as well.  According to the Cygwin documentation, I can use the -once option
so that XWin closes after one session.

I cannot get the -once option to work.  Perhaps I simply don't understand
how to end the session.

If anyone knows of a way I can get XWin to shut down after I close the
window the linux app was running in (whether it be the -once option, or
otherwise) I'd be very grateful.  I'm probably not understanding how -once
works, so perhaps even if you could explain a way to get that option to
work, I could bend it to my own needs.

Thanks a lot.
--
View this message in context: 
http://www.nabble.com/Shutting-down-XWin-after-session-%28-once-option%29-t1282431.html#a3409204
Sent from the cygwin-xfree forum at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Shutting down XWin after session? (-once option)

2006-03-14 Thread Boscolio

Thusfar I've tried programs that should quit right away (i.e. firefox, bnr2,
etc).

I just realized that I was doing something a bit convoluted and simplified
it.  I now only need a batch file to do what I have been doing.

So my batch file just runs XWin, then runs ssh to connect to my Linux
computer.  I'm pretty novice at Linux, so I looked around until I figured
out how to execute a program through ssh with a single command.  The line in
my batch file looks like:  

%RUN% ssh -Y -l username linuxmachine (programtorun)

Watching my processes in windows, when I close the forwarded app ssh.exe
also closes.  So it's not like ssh is still connected and keeping XWin
alive.
--
View this message in context: 
http://www.nabble.com/Shutting-down-XWin-after-session-%28-once-option%29-t1282431.html#a3410262
Sent from the cygwin-xfree forum at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/



Re: Shutting down XWin after session? (-once option)

2006-03-14 Thread Boscolio

Ssh is run from the DOS batch file.
Here are the functional lines in my batch file (aside from path and run
variables):

SET DISPLAY=127.0.0.1:0.0
%RUN% XWin -screen 0 -multiwindow -clipboard -once
%RUN% ssh -Y -l username linuxmachine (programtorun)


I don't think I have any other information to give.  Only other thing I did
was set X11 forwarding in my ssh config file and set up some ssh
authentication keys.


--
View this message in context: 
http://www.nabble.com/Shutting-down-XWin-after-session-%28-once-option%29-t1282431.html#a3410703
Sent from the cygwin-xfree forum at Nabble.com.


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Problem reports:   http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ:   http://x.cygwin.com/docs/faq/