--- 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 think I managed to get this to work. Actually
I am not sure if the pipes are working, because I am
getting no output for 

$ ps |grep Xwin

However for 

$ ps
      PID    PPID    PGID     WINPID  TTY  UID   
STIME COMMAND
    23492       1   23492      23492  con  500
11:06:42 /usr/X11R6/bin/XWin
    25152       1   25152      25152  con  500
13:14:28 /usr/bin/xterm
I   25188   25152   25188      25208    0  500
13:14:28 /usr/bin/bash
    26456       1   26456      26456  con  500
13:18:41 /usr/bin/xterm
I   26492   26456   26492      26512    1  500
13:18:41 /usr/bin/bash
    26128       1   26128      26128  con  500
13:28:20 /usr/bin/bash
    23048   26128   23048      20344  con  500
13:28:23 /usr/bin/ps

So this seems OK – so I am wondering why the former
command did not work. Could this be a problem with the
Pipe?? I have no experience with this. 

Thanks a lot for your help,
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/

Reply via email to