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: Checking if the X Server is running


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/


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