to prevent any misbehavior of the cron daemon, please stop the daemon before starting any OS upgrade
Frontend for the cron scheduler. Makes it easy to view your schedules in a more friendly way.
Also gives the opportunity to fully manage crontabs of nemo and root. The usual warning: always be careful with root permissions. Disabling is achieved by adding a specific comment string in the cron entry.
Displayed commands can be replaced by a more meaningful text.
Using cron-descriptor for the conversion of cron expressions into human readable strings.
Using python-crontab for the cron timestring syntax check.
Needs vixie-cron or cronie as cron daemon, which can be found in my repo.
Loading a large crontab can cause some unresponsiveness.
If you want to play more with the crontab syntax, you can have a try here: http://www.corntab.com/pages/crontab-gui
Why use cron as a scheduler?
Swedish translation: eson
Sources can be found on github
Comments
PawelSpoon
Thu, 2019/02/14 - 03:36
Permalink
The corntab link leads to nowhere i think
ade
Thu, 2019/02/14 - 13:46
Permalink
Yeah, it moved from launchpad to github to gitlab in a short period of time. But now it should be up-to-date again.
olf
Thu, 2019/02/14 - 02:38
Permalink
WRT the "warning regarding SailfishOS upgrades":
Is there an easy way to disable Sailcron from the command line?
ade
Thu, 2019/02/14 - 10:39
Permalink
It's not Sailcron but the cron deamon (as root): systemctl stop cron
olf
Thu, 2019/02/14 - 20:02
Permalink
Thanks (& sorry for asking without thinking).
Louis
Sat, 2018/05/26 - 02:25
Permalink
Thanks for this great app.
Any reason for using cron over systemd timers? :)
ade
Sat, 2018/05/26 - 10:24
Permalink
The answer to your question has been mostly answered over here, in a comment by Self_Perfection, followed by my reaction.
I did put some more reasoning in the description.
manisblack
Mon, 2017/02/20 - 21:58
Permalink
Hello and thank you for this application but unfortunately it no longer works on SailfishOS 2.1.0.9
This message is a translation of translate.google
Here is the return of my terminal
[nemo@Sailfish ~]$ harbour-sailcron
[D] unknown:0 - Using Wayland-EGL
[D] :145 - pretty_cron module is now imported
[W] unknown:194 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:194: TypeError: Cannot read property 'backIndicatorDown' of null
[W] unknown:189 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:189: TypeError: Cannot read property 'backIndicatorDown' of null
[W] unknown:247 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:247: TypeError: Cannot read property 'forwardIndicatorDown' of null
[W] unknown:242 - file:///usr/lib/qt5/qml/Sailfish/Silica/DialogHeader.qml:242: TypeError: Cannot read property 'forwardIndicatorDown' of null
[D] :325 - pretty_cron module is now imported
[D] :328 - valid_cron module is now imported
[D] onError:334 - python error: Not a parameter list in call to valid_cron.validate_cron:
[W] unknown:85 - file:///usr/share/harbour-sailcron/qml/pages/AddPage.qml:85: Error: Cannot assign [undefined] to bool
ade
Mon, 2017/02/20 - 22:14
Permalink
I am aware of this, hitting the same bug as Otsaloma reported (https://together.jolla.com/question/156736/2109-pyotherside-call_sync-br...). As I already implemented his workaround for now, I will release a new version.
manisblack
Tue, 2017/02/21 - 09:05
Permalink
Thanks for this update
ade
Sat, 2016/06/11 - 12:39
Permalink
That's a cool site, I have visited it earlier. Even considered creating a similiar interface, but in the end decided to keep it simple and use text input fields.
In combination with some explanation above the input fields and all the info about cron to be found on the internet, people should manage. And entering values like this keeps people closer to the actual cron syntax.
But this side can be a good exercise/validation site, I did add it to the description here.
eson
Sat, 2016/06/11 - 11:52
Permalink
Maybe this link could generate some new cron users... :)
http://www.corntab.com/pages/crontab-gui
cizi
Thu, 2016/05/26 - 08:49
Permalink
Hello, thanks for this application. But can you give me a hint? I tried to added an entry but no luck. I filled all the fields, verified the entry and confirmed save but no line appeared for user nemo in list. What do I wrong?
ade
Thu, 2016/05/26 - 09:27
Permalink
hi cizi,
You seem to be right, I can modify entries, but new ones are not saved. I don't know what the issue is, but I will fix it asap.
cizi
Thu, 2016/05/26 - 09:44
Permalink
Thanks for answer and solution as well! But no worries, no rush.
ade
Thu, 2016/05/26 - 21:30
Permalink
should be solved now. I must be more careful with pasting ;-)
You will probably have some invalid crontab entries; you can remove them using "crontab -e" on the terminal.
objectifnul
Tue, 2016/05/17 - 20:56
Permalink
If I enter “0,1,3-6” for the 'day of the week' field, the syntax analyzer says “ok” but the task is displayed with “error in settings” (too bad, as I wanted to set an auto off task for every day except Tuesday to allow the weekly btrfs balance)
Btw “0,1,3,4,5,6” is too long and not accepted.
ade
Tue, 2016/05/17 - 21:22
Permalink
I will increase the input length of the fields so e.g. “0,1,3,4,5,6” will fit.
Your cronjob should already work as scheduled, but it looks like it can't display the combination of separate weekdays and a range of weekdays. I will make a bugreport for the person who made the module for the human readable translations.
Thanks for reporting.
ade
Tue, 2016/05/24 - 21:23
Permalink
The cron-descriptor part is targeted for describing the cron rule, not for checking the validity of the string.
That's why I also included another module, python-crontab. This can validate the string. Works pretty good, but still accepts '6-3' as day of week. I may report that.
Furthermore I limited the accepted input characters.
objectifnul
Tue, 2016/05/17 - 23:45
Permalink
Note that “3-1” is accepted. The descriptor displays “From Wednesday to Monday”. That's fine.
ade
Wed, 2016/05/18 - 20:38
Permalink
That's another clever approach :-)
Edit: with version 0.0.1-10 both issues should be solved
objectifnul
Fri, 2016/05/20 - 08:42
Permalink
After checking, "3-1" is actually accepted and correctly translated into human readable language, but not applied: the job is not launched.
"0,1,3,4,5,6" is OK after last update (v0.1-10)
ade
Fri, 2016/05/20 - 12:00
Permalink
Looks like cron in general can not cope with ranges that start with a higher value than it ends.
I will see if I can do something with that in the cron validation.
localhost
Fri, 2016/02/26 - 10:13
Permalink
Seems I can't install this app on SailfishOS 2.0.1.7 (early access). I'm getting an repo-not-found error for libpython3_4m1_0-3.4.3-1.6.3.armv7hl.rpm.
Any suggestions on getting it installed?
ade
Fri, 2016/02/26 - 10:16
Permalink
The terminal command "pkcon refresh" first might help.
objectifnul
Tue, 2016/02/16 - 12:03
Permalink
The "day of the week" setting says "Range from 0 to 7 (...) Sunday is 0".
So, Monday is 1 etc until Saturday is 6 I guess. But what is 7?
ade
Tue, 2016/02/16 - 12:11
Permalink
I didn't notice, but you are right, it should be 0 to 6.
Btw the cron syntax validator would not accept the value of 7.
Thanks for informing, will correct this.
objectifnul
Tue, 2016/02/16 - 12:25
Permalink
Too bad. I thought you invented the three days week-end.
ade
Tue, 2016/02/16 - 12:29
Permalink
If only I could :-)
Uploaded version 0.0.1-6 with corrected text.
Self_Perfection
Thu, 2016/02/11 - 18:07
Permalink
I don't like this approach. Systemd timers are known to not activate while a phone in deep sleep, is using cron reliable enough? Are we sure, that cron does not increase amount of wakes from sleep and therefore does not affect running time on one charge much? Anyway this approach requires installation of one more packet and running one more daemon in background, and RAM is always scarce on Jolla.
We can use native system timed service for running scheduled tasks. And I successfully use it for running several scripts on schedule. But I had to create these events with CLI interface
timedclient-qt5
. In the process of creating these tasks I've discovered that timedclient-qt5 is rather buggy and does not support all timed features, so eventually I modified ~/.timed/events.data with text editor to get what I want.IMHO UI for managing timed events would be much more useful.
Pages