I have several bash scripts, or rather one script that has to be run multiple times.
This script accepts several command line arguments and does something with them. I need to run this script multiple times in sequence, passing in different argument values. The problem is that this script is very long and it takes a lot of time to run.
I want to run this script once, with some arguments. Then I want to run this script again right away, passing in different argument values this time.
I need to give my finished results to my boss in the morning. One solution would be to just run the script once, and then sit at the computer all through the night, waiting for it to finish, and then run the script once again. But lack of sleep is not an option for me.
Is there some way to automate the running of scripts with predetermined argument values? By the way, I need to see not just the output of the scripts as the final result, but also the script as it was passed in to the command line with the appropriate arguments.
Perhaps it would be better to look at this image to understand my question better.