KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I want to design a shell script as a wrapper for a couple of scripts. I would like to specify parameters for myshell.sh using getopts and pass the remaining parameters in the same order to the script specified. If myshell.sh is executed like: myshell.sh -h hostname -s test.sh -d waittime param1 param2 param3 myshell.sh param1 param2 -h hostname param3 -d waittime -s test.sh myshell.sh param1 -h hostname -d waittime -s test.sh param2 param3 All of the above should be able to call as test.sh param1 param2 param3 Is it possible to utilize the options parameters in the myshell.sh and post remaining parameters to underlying script?
Tags (comma-separated)
Save Edits
Cancel