I have a main tcl script which calls multiple bash scripts. But I want to have everything in one place. Is there a way to directly implement my bash scripts inside the tcl script (as procs?) and somehow mark them as bash scripts? You obviously can't just put them inside procs and change nothing about them of course.
Another thing that has to be taken care of: some bash scripts need to be accesed as su, how could that be implemented?
I'm not looking for something like this: How to call bash commands from tcl script? - I just want my bash scripts as "isolated" procedures.