Checking if the X Server is running

2007-09-30 Thread O. Olson
Hi, Pardon my ignorance, and that I am never good in this stuff. I have noticed that the startxwin.bat starts the X Server using %RUN% XWin -multiwindow -clipboard -silent-dup-error Is there any way of checking if the X Server is currently running? Because if you try th

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Charles Wilson <[EMAIL PROTECTED]> ha scritto: > O. Olson wrote: > > > Is there any way of checking if the X Server is > > currently running? Because if you try this again, > it > > gives you “A fatal error” … which does not crash > your > &

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Holger Krull <[EMAIL PROTECTED]> ha scritto: > > There probably is a more elegant solution but doing > ps |grep Xwin >/dev/null || run Xwin -your options > here > > will only start Xwin if it is not running already. > (Assuming you will only start one Xwin) > Dear Holger, I don’t

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Gary Johnson <[EMAIL PROTECTED]> ha scritto: > You can use 'cygcheck' to find the Cygwin package > the contains a > particular program. For example, > >$ cygcheck -p checkX >Found 2 matches for checkX. >checkx/checkx-0.1.0-1 checks to see if Xserver > is usable >checkx/che

RE: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Bengt-Arne Fjellner <[EMAIL PROTECTED]> ha scritto: > > Just run setup click next until your in the > categories window. > Click view till you reach not installed. > scroll down till you see checkX > select it and then next. > > -- > tel 0920 49 1894 > Bengt-Arne Fjellner Thanks Bengt-Arn

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Holger Krull <[EMAIL PROTECTED]> ha scritto: > I misstyped XWin, it is W not w. Sorry, i didn't > test it. > Dear Holger, I can get your suggestion of ps |grep XWin >/dev/null ||XWin -multiwindow -clipboard -silent-dup-error to work from the Cygwin Command Prompt as well as from

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Gary Johnson <[EMAIL PROTECTED]> ha scritto: > My guess is that you created that file with DOS line > endings. Try > converting it to use Unix line endings, > >cd /usr/X11R6/bin >d2u sd.sh > > then try executing it again. > > Also, I would recommend putting such scripts that > yo

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Holger Krull <[EMAIL PROTECTED]> ha scritto: > > 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 cy

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Holger Krull <[EMAIL PROTECTED]> ha scritto: > > 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 cy

Re: Checking if the X Server is running

2007-09-30 Thread O. Olson
--- Gary Johnson <[EMAIL PROTECTED]> ha scritto: > You're welcome. > > I've written a few batch files that call Bash > scripts, but to be > honest, I seldom get these right the first > time--there is usually > some aspect of the transition from Windows/DOS to > Cygwin that I > overlook. Sinc

Re: Checking if the X Server is running

2007-10-02 Thread O. Olson
--- Holger Krull ha scritto: > Holger Krull schrieb: > > Holger Krull schrieb: > > I was to fast on my last email. I tested it now: > > You need (on windows): > > set DISPLAY=127.0.0.1:0.0& c:\cygwin\bin\bash.exe > -l /home/krull/test.sh > > > > (it is important that there is no space between >

Re: Checking if the X Server is running

2007-10-02 Thread O. Olson
--- Holger Krull ha scritto: > As someone pointed out in another post the sequence > ps |grep has a risk of finding grep itself in the > list. The command pgrep combines both and hasn't > that risk. Thanks for this tip. > > That can be avoided by dual nested start like: > C:\cygwin\bin\bash.