i developing auto install x2go script in python (for ubuntu/linux especially) i'v come got gnome terminal open command os.system("gnome-terminal -e 'bash -c \"sudo apt-get update -y ; exec bash\"'")
it works fine, comes problem. have execute more 1 command in same terminal window, cant figure out how split or define 2 commands in same line. have tried --tab -e [command] doesn't seem work previous syntax os.system("gnome-terminal -e 'bash -c \"sudo add-apt-repository ppa:x2go/ppa --tab -e sudo apt-get update ; exec bash\"'")
i glad if :)
best regards
for stumbling on page google, answer resolved in comments.
simply chain commands in bash
os.system("gnome-terminal -e 'bash -c \"sudo add-apt-repository ppa:x2go/ppa && sudo apt-get update ; exec bash\"'")
Comments
Post a Comment