I'm using Jupyter Notebook and python 3.8. Depending on other variables, I will generate a txt file with the command that must be entered (literally) on the command line. For example: topup --imain potato. This command is in the txt file as a line. I want to run this command as if in the cmd. I also want to do all of this from Jupyter Notebook and have some output to know what is going on.
Is it possible? I also accept other ways to do this (I'm trying to automate an FSL procedure).