This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: Checking if the X Server is running
- From: Holger Krull <holger dot krull at gmx dot de>
- To: cygwin-xfree at cygwin dot com
- Date: Mon, 01 Oct 2007 00:09:02 +0200
- Subject: Re: Checking if the X Server is running
- References: <195443.54736.qm@web27007.mail.ukl.yahoo.com>
- Reply-to: cygwin-xfree at cygwin dot com
O. Olson schrieb:
> ps |grep XWin >/dev/null ||XWin -multiwindow
> -clipboard -silent-dup-error
>
> to work from the Cygwin Command Prompt as well as from
> a script file (.sh). I am now trying to copy and
> modify my startxwin.bat file â to see if it can do
I suggest you start the shell script from a batchfile.
Like:
C:\cygwin\bin\bash.exe -l yourstartscript.sh
Or make an Windows Icon with that command.
If yourstartscript.sh is not found you have to give the full path to it in cygwin notation.
Like:
C:\cygwin\bin\bash.exe -l /home/krull/startscript.sh
There could be a remaining extra Window, can be avoided with:
C:\cygwin\bin\bash.exe -c -l 'run bash -l -c "yourstartscript.sh &" '
--
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/