Hey_Arnold

autoRUN

Jul 6th, 2022 (edited)
975
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1. os.system('pip install schedule')
  2. from subprocess import *
  3. import schedule
  4. import time
  5.  
  6. def auto_run():
  7.     os.system('file.py')
  8.  
  9. schedule.every(5).minutes.do(auto_run)
  10. while 1:
  11.     schedule.run_pending()
  12.     time.sleep(1)
Advertisement
Add Comment
Please, Sign In to add comment