Checking if the X Server is running

O. Olson olson_ord@yahoo.it
Sun Sep 30 21:49:00 GMT 2007


--- Holger Krull <holger.krull@gmx.de> 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
a script file (.sh). I am now trying to copy and
modify my startxwin.bat file – to see if it can do
this. So I replaced the line 

%RUN% XWin -multiwindow -clipboard -silent-dup-error

Where the file starts the XWin with something like 

%RUN% ps |grep XWin >/dev/null ||XWin -multiwindow
-clipboard -silent-dup-error

To this I get “The system cannot find the path
specified” 

Now if I change that to 

%RUN% "ps |grep XWin >/dev/null ||XWin -multiwindow
-clipboard -silent-dup-error"

I get an error dialog from Run.exe telling me that it
could not find ps |grep XWin >/dev/null ||XWin
-multiwindow -clipboard -silent-dup-error  anywhere

I donÂ’t know what I am doing wrong. 
Thanks a lot for your help and time,
O.O. 



      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

--
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/



More information about the Cygwin-xfree mailing list