DmitryBurnaev / starlette-web

Simple components for web-app, based on "starlette" framework.
MIT License
4 stars 3 forks source link

Develop contrib.crontab #67

Closed dolamroth closed 1 year ago

dolamroth commented 1 year ago

For linux, simply adapt django-crontab For windows... oof https://fossies.org/linux/salt/salt/modules/win_task.py https://fossies.org/linux/salt/salt/utils/winapi.py https://medium.com/@ajay.bile007/programmatic-way-of-creating-task-in-windows-task-scheduler-8673c5d5b897 https://github.com/SublimeText/Pywin32/blob/master/lib/x32/win32comext/taskscheduler/test/test_addtask.py

dolamroth commented 1 year ago

https://gist.github.com/nmpowell/dc8e7187948788c5c126f01755252164 https://learn.microsoft.com/ru-ru/windows/win32/taskschd/schtasks

Works, but not quite good approach, due to limitation of 255 characters for command length.

dolamroth commented 1 year ago
dolamroth commented 1 year ago

https://github.com/cnheider/draugr/tree/94a402cab47a2bd6241608308371490079af4d53/draugr/os_utilities/windows_utilities/task_scheduler https://github.com/dskrypa/ds_tools/blob/6aa12a0e894b5997060e72129199865f0f66c779/ds_tools/windows/scheduler/scheduler.py https://github.com/brianjcarroll8/Saltstack/blob/6170eac439e590d774eb2e448c68eec90ea3fac0/salt/modules/win_task.py