This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
Re: XWin -silent-dup-error not so silent
- From: René Berber <r dot berber at computer dot org>
- To: cygwin-xfree at cygwin dot com
- Date: Sat, 09 Sep 2006 17:11:14 -0500
- Subject: Re: XWin -silent-dup-error not so silent
- Openpgp: url=hkp://random.sks.keyserver.penguin.de
- References: <3B3EBA81B0E5D646BE38BD42E7D157342244CF@JWJEXCH.jwj.uoregon.edu>
- Reply-to: cygwin-xfree at cygwin dot com
Jeff Cook wrote:
> Anybody have a work-around for this super-annoying problem?
I you are using a script like the sample sent by Kenneth, why not doing
something simple as:
PID=`ps -a | grep XWin | cut -d " " -f 6`
if [ -z $PID ]; then
\cygwin\bin\run XWin -multiwindow -clipboard -silent-dup-error
fi
\cygwin\bin\run xterm -e /usr/bin/bash -l
You can also use pgrep in PID=... if you have it (makes that part clearer and
more portable).
--
René Berber
--
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/