HiveMinds / tw-install

Automatically installs Taskwarrior, Taskserver (TODO: and Timewarrior). This project aims to support automated installation of all Taskwarrior hook scripts, configuration flavours etc. with a single command.
GNU Affero General Public License v3.0
17 stars 7 forks source link

Change the way the arguments are read, when running from a cronjob #49

Closed a-t-0 closed 3 years ago

a-t-0 commented 3 years ago

When running a cronjob, it can be difficult to pass all the arguments to the javaServerSort.jar file. As a solution, you can either:

  1. Put all the arguments between "" quotation marks to put them in a single string element, as currently is the case in the way the args are read.
  2. Put them all separately after the java -jar JavaServerSort.jar -argName0 -argValue0 -argName1 -argValue1.. command.
  3. After the arguments are passed to the JavaServerSort.jar file the first time, create a config file that contains the arguments which is checked for existence, before checking the incoming input arguments.