HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- export DISPLAY Script help.
Operating System - HP-UX
1833523
Members
2962
Online
110061
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
10-22-2002 11:20 AM
10-22-2002 11:20 AM
Team:
Please find attached the script where i am trying to validate first number should be 155 and if true then checks :0.0 and checks for a 2 digit value and sets the DISPLAY variable. Now this only works for two digit upto :99.0 but i need this to be working even for a four digit display like from :1.0 thru :1000.0. Please help me with this script.
Thanks
Joe.
Please find attached the script where i am trying to validate first number should be 155 and if true then checks :0.0 and checks for a 2 digit value and sets the DISPLAY variable. Now this only works for two digit upto :99.0 but i need this to be working even for a four digit display like from :1.0 thru :1000.0. Please help me with this script.
Thanks
Joe.
Solved! Go to Solution.
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2002 11:23 AM
10-22-2002 11:23 AM
Re: export DISPLAY Script help.
Team:
The attached script here..
Joe
The attached script here..
Joe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-22-2002 12:40 PM
10-22-2002 12:40 PM
SolutionIt should be sufficient to numerically evaluate the first IP octet as 155 and the screen number as greater than or equal to 10.
verify_DISPLAY () {
if [ ${1%%.*} -eq 155 -a ${1##*:} -ge 10 ]
then
return 0
fi
echo 'DISPLAY is NOT valid'
return 1
}
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