How to lunch an appliations on linux using python script? -


this question has answer here:

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

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -