I have a TCL script that has many parameters defined as arguments. I intend to create a job file where I can execute the .tcl script with different combinations of the parameters without manual intervention.
What I mean is the following:
Job File (run.sh):
./main.tcl arg1 arg2 arg3 arg4
./main.tcl arg1 arg3 arg5
Now I want to be able to pass the command line argument array "argv" for each run mentioned in run.sh as an array into the main.tcl script so that the options are set accordingly within the script prior to execution.
Is there a way to link the .sh script and the .tcl script?
main.tcl $@
– Statued