Bug 97118

Summary: Add ability to schedule by minutes
Product: [Applications] kcron Reporter: David Liontooth <liontooth>
Component: generalAssignee: Nicolas Ternisien <nicolas.ternisien>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Liontooth 2005-01-16 04:07:38 UTC
Version:           3.3.1 (using KDE 3.3.1,  (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-4)
OS:                Linux (x86_64) release 2.6.9-ac6

There are two components to this report.

The first one is simple to implement. I need to use cron to schedule an even that starts at one minute before the hour -- 16:59. I can't do this in kcron, but crontab -e lets me do this. When I then need to disable the cronjob for a while, kcron protests that there's no minute setting. Could kcron please accept minute settings that don't end in 0 or 5? Not sure if this is a bug report or a wishlist item.

The second is a feature request for the wishlist. It would be great if kcron could support the full time resolution of cron -- that is to say, scheduling by the minute, not only by five-minute intervals. A simple way to implement this would be to add a single field that allowed two digits indicating minutes. If you use the kcron buttons, you would only be able to select minute values ending in 0 or 5. But you could manually go in and change this to gain more precision. Adding a single field would add significant new functionality.

Of course, kcron would then need to tolerate all minute values; cf. above.

Incidentally, I use kcron for a VCR function -- it lets me set up a VCR with a dozen lines of a bash script, and then we use kcron for user-friendly TV recording scheduling.

Dave
Comment 1 David Liontooth 2005-01-16 05:41:43 UTC
David Liontooth wrote:

>------- You are receiving this mail because: -------
>You reported the bug, or are watching the reporter.
>         
>http://bugs.kde.org/show_bug.cgi?id=97118         
>           Summary: Add ability to schedule by minutes
>           Product: kcron
>           Version: unspecified
>          Platform: unspecified
>        OS/Version: Linux
>            Status: UNCONFIRMED
>          Severity: wishlist
>          Priority: NOR
>         Component: general
>        AssignedTo: gary meyer net
>        ReportedBy: liontooth cogweb net
>
>
>Version:           3.3.1 (using KDE 3.3.1,  (3.1))
>Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-4)
>OS:                Linux (x86_64) release 2.6.9-ac6
>
>There are two components to this report.
>
>The first one is simple to implement. I need to use cron to schedule an event that starts at one minute before the hour -- 16:59. I can't do this in kcron, but crontab -e lets me do this. When I then need to disable the cronjob for a while, kcron protests that there's no minute setting. Could kcron please accept existing minute settings that don't end in 0 or 5? Not sure if this is a bug report or a wishlist item.
>
>The second is a feature request for the wishlist. It would be great if kcron could support the full time resolution of cron -- that is to say, scheduling by the minute, not only by five-minute intervals. A simple way to implement this would be to add a single field that allowed two digits indicating minutes. If you use the kcron buttons, you would only be able to select minute values ending in 0 or 5. But you could manually go in and change this to gain more precision. Adding a single field would add significant new functionality.
>
>Of course, kcron would then need to tolerate all minute values; cf. above.
>
>Incidentally, I use kcron for a VCR function -- it lets me set up a VCR with a dozen lines of a bash script, and then we use kcron for user-friendly TV recording scheduling.
>
>Dave
>  
>
Additional comment: the kcron interface is currently very attractive and 
user-friendly -- congrats on a great design. 
Still, it's not a tenable solution long-term to leave out the 1-minute 
intervals supported by cron itself.  If you don't
fancy my proposed cheapo solution of adding a two-digit minute field 
that can be hand-edited, here are some other
potentially more elegant possibilities that do justice to the current 
design:

 *  narrow the rightmost panel and use it for hours only; create a new 
panel on the right for minutes and create 60 buttons
 *  add a button for minutes that opens an expansion panel that contains 
60 minute buttons
 *  add a single horizontal slider that is used to select the time in 
minutes, labeled with minutes in increments of five, but with legal 
values for all minutes

The last idea of a slider is the most economical in terms of screen 
estate usage and would still be very easy to use. A dial would do the 
same thing.

Dave


Comment 2 Nicolas Ternisien 2008-03-18 23:53:21 UTC
SVN commit 787315 by ternisien:

Improve errors management
Rewrite and simplify most part of KCron
Add right action buttons list for a easier action access
Improve command line parsing, to avoid the saving of good command line
Reimplement and rewrite the TaskEditorDialog, by allowing a minute per minute selecting, and a smarter
displaying.
Able to add multi-lines comments on variables and tasks
Clean API
All known bugs are now closed, KCron seems to be ready for KDE 4.1

It just needs a icon from KDE Artist team

BUG:59532
BUG:97118
BUG:131433
BUG:135652
BUG:154875


 _M            . (directory)  
 M  +4 -0      src/CMakeLists.txt  
 M  +1 -1      src/crontabPrinter.cpp  
 M  +102 -74   src/crontabWidget.cpp  
 M  +28 -31    src/crontabWidget.h  
 M  +9 -1      src/crontablib/ctGlobalCron.cpp  
 A             src/crontablib/ctHelper.cpp   [License: GPL (v2+)]
 A             src/crontablib/ctHelper.h   [License: GPL (v2+)]
 A             src/crontablib/ctInitializationError.cpp   [License: GPL (v2+)]
 A             src/crontablib/ctInitializationError.h   [License: GPL (v2+)]
 A             src/crontablib/ctSaveStatus.cpp   [License: GPL (v2+)]
 A             src/crontablib/ctSaveStatus.h   [License: GPL (v2+)]
 A             src/crontablib/ctSystemCron.cpp   [License: GPL (v2+)]
 A             src/crontablib/ctSystemCron.h   [License: GPL (v2+)]
 M  +86 -156   src/crontablib/ctcron.cpp  
 M  +84 -35    src/crontablib/ctcron.h  
 M  +42 -31    src/crontablib/cthost.cpp  
 M  +9 -22     src/crontablib/cthost.h  
 M  +5 -1      src/crontablib/ctminute.cpp  
 M  +3 -2      src/crontablib/ctminute.h  
 M  +127 -7    src/crontablib/cttask.cpp  
 M  +16 -1     src/crontablib/cttask.h  
 M  +7 -5      src/crontablib/ctunit.cpp  
 M  +9 -8      src/crontablib/ctunit.h  
 M  +51 -4     src/crontablib/ctvariable.cpp  
 M  +6 -1      src/crontablib/ctvariable.h  
 M  +57 -4     src/genericListWidget.cpp  
 M  +11 -0     src/genericListWidget.h  
 M  +23 -246   src/kcmCron.cpp  
 M  +7 -49     src/kcmCron.h  
 M  +15 -2     src/kcronHelper.cpp  
 M  +3 -0      src/kcronHelper.h  
 M  +0 -24     src/kcronIcons.cpp  
 M  +1 -6      src/kcronIcons.h  
 M  +443 -308  src/taskEditorDialog.cpp  
 M  +47 -24    src/taskEditorDialog.h  
 M  +1 -20     src/taskWidget.cpp  
 M  +0 -2      src/taskWidget.h  
 M  +139 -10   src/tasksWidget.cpp  
 M  +32 -1     src/tasksWidget.h  
 M  +8 -23     src/variableEditorDialog.cpp  
 M  +1 -1      src/variableEditorDialog.h  
 M  +1 -17     src/variableWidget.cpp  
 M  +110 -7    src/variablesWidget.cpp  
 M  +25 -1     src/variablesWidget.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=787315
Comment 3 David Liontooth 2008-03-19 22:43:38 UTC
Thanks, Nicolas -- that's really fantastic work.

Cheers,
Dave

Nicolas Ternisien wrote:
[bugs.kde.org quoted mail]