With sh script
This commit is contained in:
		
							
								
								
									
										8
									
								
								run_periodically.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								run_periodically.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| if pgrep -x "python3" > /dev/null | ||||
| then | ||||
|     python3 main.py | ||||
| else | ||||
|     echo "Not running" | ||||
| fi | ||||
		Reference in New Issue
	
	Block a user
	 Remy Moll
					Remy Moll