Skip to content

itchenfei/simple_cloudflare_ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple_cloudflare_ddns

Cloudflare DDNS

TODO

  • Update Usage
  • Add argparse support
  • Add logging file support
  • Add typing support
  • Add unit test

Windows Schedule

  1. add schedule task

    schtasks /create /tn "DDNS" /tr "C:\Users\chenfei\ddns\main.exe" /sc minute /mo 1 /ru System

    Parameter explanation:

    /tn: Task name.
    /tr: Task action to perform (in this case, running a exe).
    /sc: Schedule type for the task (e.g., minute, hour, day, etc.).
    /mo: Frequency of the scheduled task.
    /ru: User account to use when executing the task. In this case, we are using the System account.

  2. delete schedule task

    schtasks /delete /tn "DDNS" /f
  3. query schedule task

    schtasks /query /tn "DDNS"
  4. run schedule task

    schtasks /run /tn "DDNS"

    on linux

    crontab

    * * * * * cd /home/chenfei/Services/simple_cloudflare_ddns && python3 main.py >> /home/chenfei/Services/simple_cloudflare_ddns/ddns.log 2>&1

About

Cloudflare DDNS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages