HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
cancel
Showing results for 
Search instead for 
Did you mean: 

Help in a script

 
Waqar Razi
Regular Advisor

Help in a script

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.

Can some one please provide me some guidance?
3 REPLIES
Tingli
Esteemed Contributor

Re: Help in a script

Can you use "getopts"?
Waqar Razi
Regular Advisor

Re: Help in a script

What is getopts?
Tingli
Esteemed Contributor

Re: Help in a script