- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: xhost+$HOSTNAME hangs..
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2010 12:47 AM
тАО03-03-2010 12:47 AM
xhost+$HOSTNAME hangs..
I am facing some problem with xhost on my HP-UX11.23 machine. When i try to do
xhost + $HOSTNAME 1>/dev/null 2>/dev/null
in a script, this hangs. When i tried to check what exactly this command returned by redirecting it into a file, the file was empty as nothing was written. Could you please tell me what should i check to troubleshoot this problem. Here is the CDE/X11 software version
#swlist |grep -e CDE
CDE-English B.11.23.0409 English CDE Environment
INP hpsep2t:/var/tmp#swlist -l product |grep -i x11
PHSS_36603 1.0 X11 Font Library Patch
X11 B.11.23 HP-UX X Window Software
Best Regards
Sudhir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2010 04:49 AM
тАО03-03-2010 04:49 AM
Re: xhost+$HOSTNAME hangs..
I note in your command line in the body of your post, you have a space between "+" and "$HOSTNAME" - there should not be a space:
xhost +$HOSTNAME 1>/dev/null 2>/dev/null
For security's sake you should probably make sure that $HOSTNAME is not null, if you don't already.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-03-2010 06:46 AM
тАО03-03-2010 06:46 AM
Re: xhost+$HOSTNAME hangs..
Thanks a lot for the reply. Yes, i have already notified about my collegue about tusc. Is there anything else which i can check in between ?
Regarding the space between "xhost + $HOSTNAME", this is syntactically correct. If you remove the spaces between xhost and + and $HOSTNAME, it will throw error.
Best Regards
Sudhir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 03:04 PM
тАО04-14-2010 03:04 PM
Re: xhost+$HOSTNAME hangs..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 06:20 PM
тАО04-14-2010 06:20 PM
Re: xhost+$HOSTNAME hangs..
> $HOSTNAME", this is syntactically correct.
> If you remove the spaces between xhost and
> + and $HOSTNAME, it will throw error.
Not really. The space after "xhost" is
required; the space after "+" is not.
man xhost
It would, of course, be interesting to see
what "$HOSTNAME" actually is. Also, what
"$DISPLAY" is, because "xhost" expects to
talk to the X display.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-14-2010 09:15 PM
тАО04-14-2010 09:15 PM
Re: xhost+$HOSTNAME hangs..
From man xhost:
[+]name The given name (the plus sign is optional)
If the plus sign is optional, you could use in your script this:
xhost $HOSTNAME 1>/dev/null 2>/dev/null
Depending on your script/shell used, if you are using strings, '+' have a special meaning (concatenating 2 strings).
Best regards,
Horia.
Horia.