r/pythonhelp • • Jan 15 '22

how do i do this?

when you run the command 'os.system("gnome-terminal -e 'sudo apt-get update'") is there any way to add more commands into the same terminal? thanks!

2 Upvotes

6 comments sorted by

1

u/Goobyalus Jan 15 '22

Presumably

os.system("gnome-terminal -e 'sudo apt-get update; another command'")

1

u/Foxy_Animations165 Jan 15 '22

okay thank you so much!

1

u/Goobyalus Jan 15 '22

lmk if it works

1

u/Foxy_Animations165 Jan 15 '22

it did not work but thanks for trying