How to lunch an appliations on linux using python script? -
this question has answer here:
- python: how execute external program 4 answers
i have lunch multiple similar application regularly on linux machine want write script open them without fail.
could please me here write script open multiple applications @ time.
example: firefox , libre office cal
can please suggest script can able open these above applications(firefox , libre office cal) can build customized script open multiple applications.
thanks in advance...!!!
script:
import os import browser threading import thread def app1(my_app_name): os.system(my_app_name) def main(): t1 = thread(target=app1, args=(('firefox',)) ) #t2 = thread(target=app1 , args=(('libreoffice',)) ) t1.start() #t2.start() if __name__ == '__main__': main()
maybe useful :
import os threading import thread def app1(my_app_name): os.system(my_app_name) def main(): t1 = thread(target=app1, args=(('firefox',)) ) t2 = thread(target=app1 , args=(('libreoffice',)) ) t1.start() t2.start() if __name__ == '__main__': main()
i used (os) excute linux command shell ( can use windows) , thread run programs @ parallel
Comments
Post a Comment