When running execN with the -p option, the variables.bash is overwritten.
However, since batsim_command.bash contains the actual previous values of variables instead of pointers, the batsim_command.bash and sched_command.bash may contain different variable values (i.e. socket port).
Fix proposal: instead of prewriting batsim_command.bash, prewrite another temporary file instead and write batsim_command.bash without actual variable values.
When running execN with the
-p
option, thevariables.bash
is overwritten.However, since
batsim_command.bash
contains the actual previous values of variables instead of pointers, thebatsim_command.bash
andsched_command.bash
may contain different variable values (i.e. socket port).Fix proposal: instead of prewriting
batsim_command.bash
, prewrite another temporary file instead and writebatsim_command.bash
without actual variable values.