Create run_qsub.py
This commit is contained in:
		
							
								
								
									
										8
									
								
								2021.01.18_run_programs_sequentially/run_qsub.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								2021.01.18_run_programs_sequentially/run_qsub.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
import os
 | 
			
		||||
import time
 | 
			
		||||
os.system('qsub task_1.sh')
 | 
			
		||||
while True:
 | 
			
		||||
    if os.path.exists('./complete_1.txt'):
 | 
			
		||||
        os.system('qsub task_2.sh')
 | 
			
		||||
        break
 | 
			
		||||
    time.sleep(180)
 | 
			
		||||
		Reference in New Issue
	
	Block a user