There are mainly two questions that I would like to ask, thanks in advance.
(1) How can I open an external program in Linux? I know in Windows there is a command os.startfile() to open another program, the equivalent for Ubuntu is open(), but there's no response after I run the code, and the alternative one is subprocess.call(). This works well in Windows, but in Ubuntu it fails, could someone provide a standard templete I can use for? (Similarly like to double click the icon of a program)
(2) How can I realize functions like the code is able to open the terminal and write down several commands in terminal automatically using python?