Skip to content

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

Open
bravelocation wants to merge 2 commits intoscripting:masterfrom
bravelocation:master
Open

Added support for setting parameters via command-line arguments, and …#1
bravelocation wants to merge 2 commits intoscripting:masterfrom
bravelocation:master

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