r/coolgithubprojects • u/NorskJesus • Oct 16 '25
PYTHON Cronboard - A terminal-based dashboard for managing cron jobs
https://github.com/antoniorodr/CronboardHello everyone!
I am posting here again, and this time I’m excited to introduce my new project: Cronboard.
Cronboard is a terminal application that allows you to manage and schedule cronjobs on local and remote servers. With Cronboard, you can easily add, edit, and delete cronjobs, as well as view their status.
Features
Check cron jobs
Create cron jobs with validation and human-readable feedback
Pause and resume cron jobs
Edit existing cron jobs
Delete cron jobs
View formatted last and next run times
Connect to servers using SSH
The project is still early in development, so you may encounter bugs and things that could be improved.
Repo: https://github.com/antoniorodr/Cronboard
Your feedback ir very important!
Thanks!
1
u/gschizas Oct 17 '25
You're missing tomlkit in pyproject.toml. I had to install it via
uv tool install git+https://github.com/antoniorodr/cronboard --with tomlkitI'm not sure where the "identificator" comes from, but at most of my crontab entries, I get a "No Id". and for the rest I get weirdness. I think it's reading some comments, but I get how they relate to the crontab entries.
It doesn't understand "
@weekly" as the time definition.
1
u/NorskJesus Oct 17 '25
Thanks for the feedback! I do not know why tomlkit was deleted, but I will add it asap.
Identificator îs a comment. It comes from the first comment line before the cronjob
I will try to include things like
@weeklyon the next release.Thanks again!
1
u/gschizas Oct 17 '25
Identificator îs a comment. It comes from the first comment line before the cronjob
I figured as much after I wrote that comment, but on a crontab that already has comments and commented out lines, it picks up very weird things as 'identificators'.
1
u/NorskJesus Oct 17 '25
Yeah I can understand it. But it should not pick up all the comments tho, and you can always change it.
I use this to identify (obviously) the cronjobs when deleting/editing. As well as giving the user the opportunity to write something to describe the cronjob
2
u/gschizas Oct 17 '25
Just as a test case, here's my original crontab (I've tried to deleted any personal data):
# Edit this file to introduce tasks to be run by cron. # # Each task to run has to be defined through a single line # indicating with different fields when the task will be run # and what command to run for the task # # To define the time you can provide concrete values for # minute (m), hour (h), day of month (dom), month (mon), # and day of week (dow) or use '*' in these fields (for 'any'). # # Notice that tasks will be started based on the cron's system # daemon's notion of time and timezones. # # Output of the crontab jobs (including errors) is sent through # email to the user the crontab file belongs to (unless redirected). # # For example, you can run a backup of all your user accounts # at 5 a.m every week with: # 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ # # For more information see the manual pages of crontab(5) and cron(8) # # m h dom mon dow command PATH=/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/local/go/bin:/home/myusername/.cargo/bin HOME=/home/myusername [email protected] # */4 * * * * ~/src/script01.sh */5 * * * * ~/src/script02.sh #*/2 * * * * ~/src/script03.sh */15 * * * * ~/src/script04.sh */15 * * * * ~/src/script05.sh */15 * * * * ~/src/script06.sh # # */20 * * * * ~/src/script07.sh @weekly ~/src/script08.sh #*/5 * * * * ~/src/script09.sh */5 * * * * ~/src/script10.sh */2 * * * * ~/src/script11.sh */30 * * * * ~/src/script12.sh #0,20,40 16,17,18,19,20,21 * * * ~/src/script13.sh 0 */3 * * * wget -q https://example.com/test.json -N ~/src/data.json -O ~/src/data.json */5 * * * * ~/src/script14.sh #0 */2 * * * ~/src/script15.shThese are the identifiers it incorrectly detected:
tar -zcf /var/backups/home.tgz /home/(paused) with an identifier ofat 5 a.m every week with:. This is just from the standard header
*/4 * * * * ~/src/script01.sh(paused) with an identifier ofm h dom mon dow command(that's a bit TOO far up for it to be detected as an identifier)
@weekly, with an identifier of# */20 * * * * ~/src/script07.sh1
u/NorskJesus Oct 17 '25
Thanks for the examples!
You can open an issue in the repo if you want, and I will try to check this out and maybe find another way to have identifiers. Right now, Cronboard is using the
.commentattribute from thepython-crontablibrary.Thanks again!
1
u/NorskJesus Oct 22 '25
Released the v0.3.0:
Changelog
Added
Possibility to connect to remote servers via SSH with a user, but choosing another user (
crontab user) to manage cron jobs from. To this, the user you login with must havesudoprivileges.Some tests to control the correct functioning of
Cronboard.Changed
Refactored some functions to improve code readability and maintainability.
How the server is displayed on the tree view, adding the
crontab userfor better identification.Breaking Changes
The server bookmark format has changed to include the
crontab userfield. Old server bookmarks will maybe not work as expected.The server file located in
~/.config/cronboard/servers.tomlwill need to be updated to include the newcrontab userfield for each server. Another option is to delete the servers from the tree view and re-add them.