|
|
|
|
|
|
| Author |
Message |
mehaboob@gmail.com *nix forums beginner
Joined: 02 May 2006
Posts: 39
|
Posted: Tue Jun 06, 2006 2:07 pm Post subject:
Re: setting DISPLAY variable
|
|
|
Thanks Kevin.
Kevin Collins wrote:
| Quote: | In article <1149523608.524561.304460@c74g2000cwc.googlegroups.com>,
mehaboob@gmail.com wrote:
Hi,
My requirement is the command below
export DISPLAY=<IP Address>:0.0
I have to set the IP Address to local windows environment while
connecting remotely to UNIX box.
I am aware that I can get the IP address of local machine using
ipconfig command from windows or using nslookup from unix box......
Since I am too lazy....is there a way to type some generic command on
unix to get the IP address of local machine from which I connect to
UNIX box?
You can try something like:
export DISPLAY=$(who -m -R | awk -F '[()]' '{print $2}'):0.0
Kevin
--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com |
|
|
| Back to top |
|
 |
Kevin Collins *nix forums Guru Wannabe
Joined: 11 Mar 2005
Posts: 216
|
Posted: Mon Jun 05, 2006 9:04 pm Post subject:
Re: setting DISPLAY variable
|
|
|
In article <1149523608.524561.304460@c74g2000cwc.googlegroups.com>,
mehaboob@gmail.com wrote:
| Quote: | Hi,
My requirement is the command below
export DISPLAY=<IP Address>:0.0
I have to set the IP Address to local windows environment while
connecting remotely to UNIX box.
I am aware that I can get the IP address of local machine using
ipconfig command from windows or using nslookup from unix box......
Since I am too lazy....is there a way to type some generic command on
unix to get the IP address of local machine from which I connect to
UNIX box?
|
You can try something like:
export DISPLAY=$(who -m -R | awk -F '[()]' '{print $2}'):0.0
Kevin
--
Unix Guy Consulting, LLC
Unix and Linux Automation, Shell, Perl and CGI scripting
http://www.unix-guy.com |
|
| Back to top |
|
 |
mehaboob@gmail.com *nix forums beginner
Joined: 02 May 2006
Posts: 39
|
Posted: Mon Jun 05, 2006 4:06 pm Post subject:
setting DISPLAY variable
|
|
|
Hi,
My requirement is the command below
export DISPLAY=<IP Address>:0.0
I have to set the IP Address to local windows environment while
connecting remotely to UNIX box.
I am aware that I can get the IP address of local machine using
ipconfig command from windows or using nslookup from unix box......
Since I am too lazy....is there a way to type some generic command on
unix to get the IP address of local machine from which I connect to
UNIX box?
Mehaboob |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Fri Jan 09, 2009 5:43 am | All times are GMT
|
|
Babb Fest | Guitar Lessons | 3dge Viral Emails | Loans | Credit Card
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|