Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: cron-explain.pl -- cron next appointments

by parv (Parson)
on Nov 28, 2018 at 09:46 UTC ( [id://1226448]=note: print w/replies, xml ) Need Help??


in reply to cron-explain.pl -- cron next appointments

Thanks for the work.

A quibble though I do have: given something like "0,30 6 * * *", all the execution times ought to be listed for a date without the need of "howmany" (-n) option.

You may be interested in Crab, written in Python, which provides a web browser interface to list cron jobs, control, view logs, etc. with hooks in crontab(5).

Replies are listed 'Best First'.
Re^2: cron-explain.pl -- cron next appointments
by soonix (Canon) on Nov 28, 2018 at 16:36 UTC
    In principle yes, but what about "0,15,30,45 * * * *" or "0/5 * * * *"

    Perhaps the default could be "a screenpage full", but that also should depend on how many other events would be listed …

    can of worms :-)

      I personally do want to see all the jobs for the day (regardless of visual space constraints). The cat crontab.txt | perl cron-explain.pl [-n 3] output seem odd to me for 21 * * * * job would be running many times over before the next one listed with time of 0,30 6 * * *.

      In any case, sooner or later I am bound to change the original to list every single event time from the current time for rest of the current day (default; or, any other date via option).

        Rethinking .... No, that default is horrendous! Above mentioned default behavior should be available via another option.

        Default mode should show the the event & the first time it was ran and/or will run next for the day (undecided); along with explanation of the time/frequency (as in "once a day at x:y pm" or "4/day every 5 hours", etc.).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1226448]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (7)
As of 2024-04-23 12:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found