croneval.asciidoc 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. [[elasticsearch-croneval]]
  2. == elasticsearch-croneval
  3. Validates and evaluates a <<cron-expressions,cron expression>>.
  4. [discrete]
  5. === Synopsis
  6. [source,shell]
  7. --------------------------------------------------
  8. bin/elasticsearch-croneval <expression>
  9. [-c, --count <integer>] [-h, --help]
  10. ([-s, --silent] | [-v, --verbose])
  11. --------------------------------------------------
  12. [discrete]
  13. === Description
  14. This command enables you to verify that your
  15. cron expressions are valid for use with
  16. {es} and produce the expected results.
  17. This command is provided in the `$ES_HOME/bin` directory.
  18. [discrete]
  19. [[elasticsearch-croneval-parameters]]
  20. === Parameters
  21. `-c, --count` <Integer>::
  22. The number of future times this expression will be triggered. The default
  23. value is `10`.
  24. `-d, --detail`::
  25. Shows detail for invalid cron expression. It will print the stacktrace if the
  26. expression is not valid.
  27. `-h, --help`::
  28. Returns all of the command parameters.
  29. `-s, --silent`::
  30. Shows minimal output.
  31. `-v, --verbose`::
  32. Shows verbose output.
  33. [discrete]
  34. === Example
  35. If the cron expression is valid, the following command displays the next
  36. 20 times that the schedule will be triggered:
  37. [source,bash]
  38. --------------------------------------------------
  39. bin/elasticsearch-croneval "0 0/1 * * * ?" -c 20
  40. --------------------------------------------------