Quoting David Banning <[EMAIL PROTECTED]>: > I am running an Xwindow on a windows box. I need a script to > tell me what my network address is so that I can set my DISPLAY > varible correctly eg: 192.168.1.2:0.0 > > Any idea what command would be useful for this purpose? >
DISPLAY=`who -m | awk '{print $6}' | sed -e 's/[(|)]//g'`:0.0 give that a shot... I'm sure there's a shorter, cleaner way...but it works. --daxbert To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-questions" in the body of the message