Re: identifying my network address

2003-03-09 Thread Tim Aslat
In the immortal words of David Banning [EMAIL PROTECTED]... I wasn't clear enough. I need to get the IP address in -unix-. Try looking at your environment variables SSH_CLIENT='xxx.xxx.xxx.xxx 1220 22' SSH_TTY=/dev/ttyp1 -- | The most exciting phrase to | Tim Aslat [EMAIL PROTECTED] | |

Re: identifying my network address

2003-03-09 Thread Tim Aslat
In the immortal words of Tim Aslat [EMAIL PROTECTED]... Try looking at your environment variables SSH_CLIENT='xxx.xxx.xxx.xxx 1220 22' SSH_TTY=/dev/ttyp1 Sorry, I should have been more specific, this is the ENV variables from my server that I'm logged into via SSH showing the source

Re: identifying my network address

2003-03-09 Thread Michael Collette
David Banning wrote: 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? It's ugly. It won't work if you multiple NICs.

Re: identifying my network address

2003-03-09 Thread David Banning
On Sun, Mar 09, 2003 at 09:30:22PM -0800, Michael Collette wrote: David Banning wrote: 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

Re: identifying my network address

2003-03-09 Thread Viktor Lazlo
On Sun, 9 Mar 2003, Michael Collette wrote: It's ugly. It won't work if you multiple NICs. It may just work for what you need just the same. echo `ifconfig | grep broadcast | cut -d -f2`:0.0 This takes the output of ifconfig and parses it just a wee bit with grep and cut. I use

Re: identifying my network address

2003-03-09 Thread Adam Maas
, March 09, 2003 10:23 PM Subject: Re: identifying my network address On Sun, Mar 09, 2003 at 09:26:51PM -0500, Adam Maas wrote: run ipconfig or winipcfg (The former for NT/2k/XP, the latter for 95/98/Me) I wasn't clear enough. I need to get the IP address in -unix-. Adam - Original

Re: identifying my network address

2003-03-09 Thread Daxbert
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

Re: identifying my network address

2003-03-09 Thread Viktor Lazlo
On Sun, 9 Mar 2003, David Banning wrote: 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? If I understand correctly and

Re: identifying my network address

2003-03-09 Thread David Banning
On Sun, Mar 09, 2003 at 07:48:54PM -0800, Daxbert wrote: 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

Re: identifying my network address

2003-03-09 Thread David Banning
On Sun, Mar 09, 2003 at 10:29:38PM -0500, Adam Maas wrote: Nope, Your display variable must be set to the IP or hostname of the X Server, which in this case is the Windows machine. X mangles the client/server difference, since the box displaying teh window is teh Server (And specified via

XServer on windows (was: Re: identifying my network address)

2003-03-09 Thread Konrad Neitzel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi everybody! David Banning wrote: To use XWin32 (Ditch it, it's very buggy, eXceed is far superior), you need this is -very- welcome advice, becuase you are right. It is buggy, and I didn't know there was any quality alternatives. I am

Re: identifying my network address

2003-03-09 Thread Daxbert
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? How are you connecting to

Re: identifying my network address

2003-03-09 Thread Adam Maas
run ipconfig or winipcfg (The former for NT/2k/XP, the latter for 95/98/Me) Adam - Original Message - From: David Banning [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, March 09, 2003 9:11 PM Subject: identifying my network address I am running an Xwindow on a windows box. I

Re: identifying my network address

2003-03-09 Thread David Banning
On Sun, Mar 09, 2003 at 06:20:24PM -0800, Daxbert wrote: 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 variable correctly eg: 192.168.1.2:0.0 Any idea what

Re: identifying my network address

2003-03-09 Thread David Banning
On Sun, Mar 09, 2003 at 09:26:51PM -0500, Adam Maas wrote: run ipconfig or winipcfg (The former for NT/2k/XP, the latter for 95/98/Me) I wasn't clear enough. I need to get the IP address in -unix-. Adam - Original Message - From: David Banning [EMAIL PROTECTED] To: [EMAIL

Re: identifying my network address

2003-03-09 Thread Daxbert
Quoting Viktor Lazlo [EMAIL PROTECTED]: On Sun, 9 Mar 2003, Daxbert wrote: DISPLAY=`who -m | awk '{print $6}' | sed -e 's/[(|)]//g'`:0.0 I'm sure there's a shorter, cleaner way...but it works. Since you're using awk anyways why not eliminate piping through sed: DISPLAY=`who -m |