Skip to content

Simplify scheduling Python scripts on Linux. Just drop your Python script in the designated folder for your desired interval (minute, half-hour, hour, or day) and script-engine takes care of the rest.

Notifications You must be signed in to change notification settings

gitzain/script-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

script-engine

Simplify scheduling Python scripts on Linux. Just drop your Python script in the designated folder for your desired interval (minute, half-hour, hour, or day) and script-engine takes care of the rest.

Features:

Effortless scheduling: No complex configuration or cron jobs needed.

Table of content

Motivation

I needed a simple way to run some python scripts on my Raspbery Pi to collect home automation data at regular intervals.

Installation & Usage

Installation

  1. Download the files in this project
  2. Extract the entire script-engine folder and place it in your user home directory
  3. Edit your crontab file ("crontab -e" command) and paste the following lines at the end of the file:
* * * * * ~/script-engine/#setup/minute.sh
*/30 * * * * ~/script-engine/#setup/half-hour.sh
0 * * * * ~/script-engine/#setup/hour.sh
50 23 * * * ~/script-engine/#setup/day.sh

Usage

Write your python script and simply drop it into the appropriate folder. For example if i wanted the scrip to run every minute i would need to drop it into /script-engine/minute

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

History

31/05/2020: v0.1 Beta

Credits

License

See the LICENSE file in this project's directory.

About

Simplify scheduling Python scripts on Linux. Just drop your Python script in the designated folder for your desired interval (minute, half-hour, hour, or day) and script-engine takes care of the rest.

Topics

Resources

Stars

Watchers

Forks

Languages