HPE GreenLake Administration
Operating System - HP-UX
1825691
Members
3354
Online
109686
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
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
02-25-2009 11:45 AM
02-25-2009 11:45 AM
getopts
I want to write a script to do the over the network ignite backups. What I want to do is the script checks if we supply options like -s, -a, -n through command line, if yes it uses them and if not, it uses the default values.
I have done that by passing command line arguments but my manager doesnt want that. He wants to use the same option indicators as the original make_net_recovery commad. This way the input parameters don’t have to be in any required sequence.
I just came to know it can be done with getopts, can some one please help me in writing the script?
I have done that by passing command line arguments but my manager doesnt want that. He wants to use the same option indicators as the original make_net_recovery commad. This way the input parameters don’t have to be in any required sequence.
I just came to know it can be done with getopts, can some one please help me in writing the script?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2009 11:52 AM
02-25-2009 11:52 AM
Re: getopts
Hi Wagar:
There is an example script in the manpages that should get you going:
http://docs.hp.com/en/B2355-60130/getopts.1.html
Regards!
...JRF...
There is an example script in the manpages that should get you going:
http://docs.hp.com/en/B2355-60130/getopts.1.html
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2009 12:49 PM
02-25-2009 12:49 PM
Re: getopts
It would have been better to continue your related questions in your previous thread:
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1317575
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1317575
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
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP