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: script for remote window?


As for figuring out whether or not XWin is already running, it's as easy as "ps -ef | grep XWin". For instance, the following "scriplet" will tell you whether XWin is running...

if [ "`ps -ef | grep XWin`" == "" ]
then
 echo "XWin is not running."
else
 echo "XWin is running."
fi


From: "Thomas Chadwick" <j_tetazoo at hotmail dot com>
Reply-To: cygwin-xfree at cygwin dot com
To: cygwin-xfree at cygwin dot com
Subject: Re: script for remote window?
Date: Wed, 05 Mar 2003 15:52:58 -0500

The following post I made some time ago might be helpful...

http://sources.redhat.com/ml/cygwin-xfree/2002-10/msg00091.html

From: "Les Mikesell" <les at futuresource dot com>
Reply-To: cygwin-xfree at cygwin dot com
To: <cygwin-xfree at cygwin dot com>
Subject: script for remote window?
Date: Tue, 4 Mar 2003 12:43:33 -0600

The new -multiwindow mode looks really promising for
occasional access to unix GUI programs from a windows
box.  Is there any way to completely hide the process
of connecting in a batch file or bash script that can
be attached to a windows desktop icon?  That is, it
should start xwin (only) if it isn't already running,
The then ssh the appropriate command to a remote host with
X forwarding.  If ssh keys are in place the window
should just appear without much indication that it is
remote, otherwise it would have to stop for the ssh
password prompt. How can such a script tell at the
batch or bash level if xwin is already running?

---
  Les Mikesell
    les at futuresource dot com


_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail


_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail



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