Giter VIP home page Giter VIP logo

cronny's Introduction

Cronny

Cronny is a pure-Rust cross-platform foreground Cron Job handler. It's a foreground program that handles cron jobs.

Usage

Cronny takes one parameter - the file path. For example:

$ cronny file.cron

Syntax

The Cronny syntax is split into two parts:

  • the CRON Expression
  • the command expression These parts are split with ::.

Example

* * * * * * :: /path/to/script.sh

You can also use literal commands:

* * * * * * :: touch $(date).done

Please note that while it's possible to run it from anywhere and use relative paths, it's recommended to keep the path absolute (and if possible, user-agnostic, such as don't use $HOME etc.)

FAQs

Why not a background service?

Different platforms have different ways of background services. The best option is to use the platform's process handler, such as SystemD/OpenRC in Linux, LaunchD in macOS, or the equivalent in Windows (if there's any).

Alternatively, you can also use the & syntax on POSIX-compliant shells, such as:

$ cronny file.cron &

This will keep it running in the background.

Does it log?

Yes, unlike most CRON Job Handlers, Cronny does log it. You can, however, disable logging entirely, by setting the CRNY_LOG to 0.

Is it better than [insert name here]?

Probably. Probably not. It's meant as a personal project, and is not meant to be used in production.

Why Rust?

Why not?

License

Cronny is licensed under Apache 2.0 license.

cronny's People

Contributors

rustdevbtw avatar

Stargazers

 avatar

Watchers

 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.