HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- remote execution
Operating System - HP-UX
1829103
Members
2227
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
12-14-2001 06:34 AM
12-14-2001 06:34 AM
I want execute a program on a remote host but my shell return this message:
Error: Can't open display:
It's normal !
I say that is possible, how...
Thank in advance.
Error: Can't open display:
It's normal !
I say that is possible, how...
Thank in advance.
Fais la ...
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2001 07:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 01:41 AM
12-18-2001 01:41 AM
Re: remote execution
It seems like you are trying to run graphic program.
Do something like this:
xhost + localbox
and then
remsh remotebox? /usr/bin/X11/xclock -display localbox:0.0
Do something like this:
xhost + localbox
and then
remsh remotebox? /usr/bin/X11/xclock -display localbox:0.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2001 05:36 AM
12-18-2001 05:36 AM
Re: remote execution
If you are running Xwindows (which is not 'normal' Unix) then the remote program expects to have either -display set on the command line or the DISPLAY variable set in the remote environment prior to execution of the command. This is to tell the program where to put the image.
This is not automatic although with caveats, you could have the remote host figure out your DISPLAY value automatically. Suppose you want to run xclock remotely and display the result on your screen. Assuming you are using telnet to the remote system, you can put this into your .profile:
export DISPLAY="$(who -muR | awk '{print $NF}'):0.0"
Now the DISLAY variable will be set automatically when you login. NOTE: remsh does not perform a normal login so you would have to run the command locally. So instead of:
$ remsh remoteCPU /usr/bin/X11/xclock
you would have to do something like:
$ remsh remoteCPU /usr/bin/X11/xclock -display "$(hostname):0.0"
or you could make it simpler by keeing the DISPLAY variable set in your local environment with something like:
export DISPLAY="$(hostname):0.0"
These examples assume that you are running an HP-UX workstation and not a PC. For the PC solution, your remote command would have to somehow obtain the hostname or IP address of the PC and include it on the command line, usually by using the -display option in the program.
Bill Hassell, sysadmin
This is not automatic although with caveats, you could have the remote host figure out your DISPLAY value automatically. Suppose you want to run xclock remotely and display the result on your screen. Assuming you are using telnet to the remote system, you can put this into your .profile:
export DISPLAY="$(who -muR | awk '{print $NF}'):0.0"
Now the DISLAY variable will be set automatically when you login. NOTE: remsh does not perform a normal login so you would have to run the command locally. So instead of:
$ remsh remoteCPU /usr/bin/X11/xclock
you would have to do something like:
$ remsh remoteCPU /usr/bin/X11/xclock -display "$(hostname):0.0"
or you could make it simpler by keeing the DISPLAY variable set in your local environment with something like:
export DISPLAY="$(hostname):0.0"
These examples assume that you are running an HP-UX workstation and not a PC. For the PC solution, your remote command would have to somehow obtain the hostname or IP address of the PC and include it on the command line, usually by using the -display option in the program.
Bill Hassell, sysadmin
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP