Giter Site home page Giter Site logo

cronv's Introduction

visualize crontab settings.

rake demo

$ rake demo

---------- sample crontab settings.
5-9,6,*/12 */2 * * * echo 123 > ~/foo.txt 2>&1
*/5        */4 * * * echo 456 > ~/bar.txt 2>&1
5,10,15      * * * * echo 789 > ~/baz.txt 2>&1
----------
このcrontab設定で現在時から4時間の間に実行されるコマンドをタイムライン表示します。

exec: cron_timeline_diagram = Crontav::Visualizer.new(sample_cron).show(60 * 60 * 4)
 ┏━━━ 2015-04-23 01:03:00 +0900. Displaying from.
 ・
 ・
 ・
 ┣━━━ 2015-04-23 01:05:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 01:10:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 01:15:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 02:00:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━┳━ 2015-04-23 02:05:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┃ ┗━ 2015-04-23 02:05:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ┣━━━ 2015-04-23 02:06:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 02:07:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 02:08:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 02:09:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 02:10:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 02:12:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 02:15:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 02:24:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 02:36:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 02:48:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 03:05:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 03:10:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 03:15:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━┳━ 2015-04-23 04:00:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┃ ┗━ 2015-04-23 04:00:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━┳━ 2015-04-23 04:05:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┃ ┣━ 2015-04-23 04:05:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ┃ ┗━ 2015-04-23 04:05:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ┣━━━ 2015-04-23 04:06:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 04:07:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 04:08:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 04:09:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━┳━ 2015-04-23 04:10:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ┃ ┗━ 2015-04-23 04:10:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:12:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━┳━ 2015-04-23 04:15:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ┃ ┗━ 2015-04-23 04:15:00 +0900 -> echo 789 > ~/baz.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:20:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:24:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ┣━━━ 2015-04-23 04:25:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:30:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:35:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ┣━━━ 2015-04-23 04:36:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:40:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:45:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:48:00 +0900 -> echo 123 > ~/foo.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:50:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┣━━━ 2015-04-23 04:55:00 +0900 -> echo 456 > ~/bar.txt 2>&1
 ・
 ・
 ・
 ┗━━━ 2015-04-23 05:04:00 +0900 Displayed to.

cronv's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.