niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » HP-UX
setting DISPLAY variable
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
Author Message
mehaboob@gmail.com
*nix forums beginner


Joined: 02 May 2006
Posts: 39

PostPosted: Tue Jun 06, 2006 2:07 pm    Post subject: Re: setting DISPLAY variable Reply with quote

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

PostPosted: Mon Jun 05, 2006 9:04 pm    Post subject: Re: setting DISPLAY variable Reply with quote

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

PostPosted: Mon Jun 05, 2006 4:06 pm    Post subject: setting DISPLAY variable Reply with 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?

Mehaboob
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 5:43 am | All times are GMT
navigation Forum index » *nix » HP-UX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Postfix + MySQL error: very strange variable %s iWarior Postfix 0 Mon Aug 25, 2008 2:01 pm
No new posts User Environment - export PATH variable paalepu AIX 0 Tue Sep 12, 2006 8:12 pm
No new posts does squid 2.6 support setting cache_peer port in redirec... Victor Tsang Squid 0 Fri Jul 21, 2006 8:16 am
No new posts help setting up exim -- mail not sent to domain ithou.org Albert Wong Exim 0 Fri Jul 21, 2006 7:00 am
No new posts setting serial start value Greg Philpott PostgreSQL 4 Fri Jul 21, 2006 1:32 am

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
[ Time: 0.1635s ][ Queries: 20 (0.0883s) ][ GZIP on - Debug on ]