import os import time # Generate tmux sessions # Generate satellite tmuxes session_char = 'p' print('entered') for i in range(1, 9): tmux_cmd = 'tmux new-session -d -s ' + session_char + str(i) os.system(tmux_cmd) time.sleep(1) # if i < 6: # tmux_cmd = 'tmux new-session -d -s t' + str(i) # os.system(tmux_cmd) #print('done') #time.sleep(100000) # Invoke main satellite session tmux_cmd = 'tmux new-session -d -s main' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t main "python3.7 init_sat2022_new.py 0" Enter' os.system(tmux_cmd) #print('done') #time.sleep(50000000) # # Invoke custom bulk satellite session for a b2b account # tmux_cmd = 'tmux new-session -d -s main_b2b_bulk' # os.system(tmux_cmd) # tmux_cmd = 'tmux send-keys -t main_b2b_bulk "python3.7 init_sat2022_new.py 3 10 D4xU2QGhooXfK6qiEeHdAlp0wk53" Enter' # os.system(tmux_cmd) # time.sleep(5) # Invoke api session tmux_cmd = 'tmux new-session -d -s api' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t api "python3.7 init_sat2022_new.py 1" Enter' os.system(tmux_cmd) time.sleep(5) # Invoke bulk history api session tmux_cmd = 'tmux new-session -d -s bulk_api' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t bulk_api "python3.7 init_sat2022_new.py 2" Enter' os.system(tmux_cmd) time.sleep(5) # Invoke segmentation session #tmux_cmd = 'tmux new-session -d -s sam' #os.system(tmux_cmd) #tmux_cmd = 'tmux send-keys -t sam "python3.7 process_segments.py" Enter' #os.system(tmux_cmd) #time.sleep(5) # Invoke zipping session tmux_cmd = 'tmux new-session -d -s zip' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t zip "python3.7 init_zip_reports.py" Enter' os.system(tmux_cmd) time.sleep(5) # Invoke deforestation session tmux_cmd = 'tmux new-session -d -s def' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t def "python3.7 deforestation.py" Enter' os.system(tmux_cmd) time.sleep(5) # Invoke erosion session tmux_cmd = 'tmux new-session -d -s gen_geotif' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t gen_geotif "python3.7 generate_geotiff.py" Enter' os.system(tmux_cmd) time.sleep(5) # Invoke erosion session tmux_cmd = 'tmux new-session -d -s erosion' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t erosion "python3.7 barren_soil.py" Enter' os.system(tmux_cmd) #Invoke interactive report instant session tmux_cmd = 'tmux new-session -d -s ir_instant' os.system(tmux_cmd) tmux_cmd = 'tmux send-keys -t ir_instant "python3.7 init_interactive_report.py 0" Enter' os.system(tmux_cmd) print("done") # tmux_cmd = 'tmux new-session -d -s blogs' # os.system(tmux_cmd) # tmux_cmd = 'tmux send-keys -t blogs "python3.8 init_interactive_report.py 0" Enter' # os.system(tmux_cmd) # print("done") # #Invoke interactive report main session # tmux_cmd = 'tmux new-session -d -s ir_main' # os.system(tmux_cmd) # tmux_cmd = 'tmux send-keys -t main "python3.7 init_interactive_report.py 1" Enter' # os.system(tmux_cmd)