Skip to content

Added support for setting parameters via command-line arguments, and … #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bravelocation
Copy link

…for running once only

I made this change because on my shared host server I can only run cron jobs, so I didn't want it to run continuously.

Basically using the nconf library means you can use either environment variables or command-line arguments to the script to set the various parameters.

I also added a "runEveryMinute" parameter - defaulting to true to keep original behaviour - that can be set to false which will run the code only once and then exit the script.

Your script saved me a lot of time, so am happy to contribute my minor changes if you think other people may find them useful (and definitely feel free to ignore them if you don't!)

Thanks
John Pollard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant