I'm trying to make a python script that opens a separate terminal window and immediately enters a command without the user having to type anything.
I use os.system("gnome-terminal")
to open the second terminal but I have no clue how to make it go ahead an enter a command. I tried os.system("gnome-terminal -e 'python ./example.py'")
but it doesn't even open a second terminal, but while I have os.system("gnome-terminal")
it opens one fine.
Thanks