Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /usr/bin/python
- # -*- coding: utf-8 -*-
- import os
- import time
- while True:
- # Disconnecting
- os.system('rasdial fttx /disconnect')
- # Sleep 20 sec.
- time.sleep(20)
- # Conntcting
- os.system('rasdial fttx 2wataigzwm uVm3EhwAUQ')
- # Test connection
- time.sleep(5)
- while os.system('ping -n 1 ya.ru'):
- os.system('rasdial fttx 2wataigzwm uVm3EhwAUQ')
- time.sleep(25)
- # Sleep 13 min.
- time.sleep(780)
Advertisement
Add Comment
Please, Sign In to add comment