Skip to content

lrq3000/addcron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

addcron

A simple Cron job adder, with automatic checking to avoid duplicates

This is mainly an excerpt from the OAMPS script, but it can be used for all purposes, not only game servers.

License

This script is licensed under MIT license.

Author

Stephen Larroque

Usage

Usage: ./$SCRIPTNAME 'crondate' 'crontask' [OPTION]...
Add only once a cron job to execute the specified crontask at a specified crondate interval. Will automatically check for duplicates, so that it will never add twice the same job inside cron.

WARNING: only use absolute paths, else cron may not be able to execute the task, and also the check for duplicates will fail.

Note: the duplicates checking will match any shorter crontask, eg: already added crontask 'mycronjob', if you try to add crontask 'mycron' it will be rejected because of being a duplicate.
  
  --verbose				Print verbose infos of oamps.sh

About

A simple Cron job adder, with automatic checking to avoid duplicates

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages