Re: X11 capturing DISPLAY value

2013-03-11 Thread Jon TURNEY
On 10/03/2013 22:17, wynfi...@gmail.com wrote: > I wanted to capture the X11 DISPLAY value that shows on the console when > 'startx &' in invoked and successful. I've tried: > > startx 2>&1 | grep DISPLAY\= >/tmp/xwin.txt & > startx 2>&1 | grep DISPLAY >/tmp/xwin.txt & > > but neither worked.

Re: X11 capturing DISPLAY value

2013-03-10 Thread d.henman
Thanks, but I don't like hard coding something important like that. It might work most of the time, in my case it wouldn't work, my X-window comes up as ":1" and it appears sometimes as ":0", but mainly one, but if more people were on the machine it cou ld be other values as well. You're right

Re: X11 capturing DISPLAY value

2013-03-10 Thread Eliot Moss
On 3/10/2013 6:17 PM, wynfi...@gmail.com wrote: I wanted to capture the X11 DISPLAY value that shows on the console when 'startx &' in invoked and successful. I've tried: startx 2>&1 | grep DISPLAY\= >/tmp/xwin.txt & startx 2>&1 | grep DISPLAY >/tmp/xwin.txt & but neither worked. I could

X11 capturing DISPLAY value

2013-03-10 Thread wynfield
I wanted to capture the X11 DISPLAY value that shows on the console when 'startx &' in invoked and successful. I've tried: startx 2>&1 | grep DISPLAY\= >/tmp/xwin.txt & startx 2>&1 | grep DISPLAY >/tmp/xwin.txt & but neither worked. I could check files in /tmp/.X11-unix/* for date, owner,