I need to write a scirpt in python (or bash) which:
- open a new linux terminal with a few tabs
- do a 'source myfile.csh' command on each of the tab
I've tried with something like this:
os.system("gnome-terminal --tab --working-directory=/repo/ -e 'source myfile.csh' ")
but it didn't work (for example file was not found even though I was in a correct directory or can't open a .csh file blah blah blah)
I've also tried a few other options, but I didn't find a proper soultion for my problem.
I don't know why I can't do a simple "open a new terminal, write a command and execute it"
Maybe is there any simple solution WITHOUT installing any new software (I don't have a root)?