Re: Checking if the X Server is running

2007-10-01 Thread Holger Krull
O. Olson schrieb: --- Holger Krull [EMAIL PROTECTED] ha scritto: Teach your email program to not include the full email adress while quoting! #!/bin/sh if `ps | grep XWin /dev/null` I suggest using grep -i to make it case ignoring. I found a cygwin installation that has Xwin and not

Re: Checking if the X Server is running

2007-10-01 Thread Holger Krull
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 0.0 and ) test.sh: #!/bin/sh ps |grep -i /xwin /dev/null if [ $? -eq 0 ] then

Re: Checking if the X Server is running

2007-10-01 Thread Holger Krull
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 0.0 and ) test.sh: #!/bin/sh ps |grep -i /xwin

RE: Checking if the X Server is running

2007-10-01 Thread Phil Betts
O. Olson wrote on Monday, October 01, 2007 1:49 AM:: I still don't think I can get this to work. I tried this from the command line (and my file is in /usr/local/bin/sd.sh) C:\cygwin\bin\bash --login /usr/local/bin/sd.sh This still brings up the Fatal Error Window. It's probably