This is the mail archive of the cygwin-xfree 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: XWin -silent-dup-error not so silent


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/


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