crontab.exe provides a Linux-style per-user crontab file on Windows and runs it from a Windows service.
go install github.com/dvgamerr-app/crontab-windows/cmd/crontab@latestRunning crontab with no arguments installs the Windows service for the current user's .crontab.
crontab
crontab startThe service runs automatically on boot after it is installed.
crontab -e
crontab -l
crontab -r
crontab -u <user> -e
crontab install
crontab start
crontab stop
crontab remove
crontab debugcrontab -e opens %USERPROFILE%\.crontab in %VISUAL%, %EDITOR%, or Notepad.
* * * * * curl https://www.google.com
- - - - -
| | | | |
| | | | +----- Day of the Week (0 - 6, Sunday=0 or 7)
| | | +------- Month (1 - 12)
| | +--------- Day of the Month (1 - 31)
| +----------- Hour (0 - 23)
+------------- Minute (0 - 59)
The parser supports *, lists, ranges, and steps such as */5, 1,15, and 9-17.
By default logs are written to:
%ProgramData%\crontab\crontab.log
The scheduler reloads the crontab file every minute before running due jobs. Commands run through cmd.exe /C with the machine environment loaded so commands such as curl can be found through PATH.