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