diff --git a/README.md b/README.md index 00682ee..35cd44a 100644 --- a/README.md +++ b/README.md @@ -195,6 +195,12 @@ First, just install tasker command: go install github.com/adhocore/gronx/cmd/tasker@latest ``` +Or, you can install using mise: + +```sh +mise use github:adhocore/gronx@latest +``` + Or you can also download latest prebuilt binary from [release](https://github.com/adhocore/gronx/releases/latest) for platform of your choice. Then prepare a taskfile ([example](./tests/../test/taskfile.txt)) in crontab format @@ -213,7 +219,7 @@ tasker -file path/to/taskfile -file string The task file in crontab format -out string - The fullpath to file where output from tasks are sent to + The fullpath to file where output from tasks are sent to (defaults to stderr) -shell string The shell to use for running tasks (default "/usr/bin/bash") -tz string @@ -233,9 +239,12 @@ tasker -tz America/New_York -file path/to/taskfile -shell zsh # run all tasks us > File extension of taskfile for (`-file` option) does not matter: can be any or none. > The directory for outfile (`-out` option) must exist, file is created by task daemon. +> If `-out` is not provided, both tasker logs and task outputs are sent to `stderr`. > Same timezone applies for all tasks currently and it might support overriding timezone per task in future release. +> [Here's an example](https://github.com/iloveitaly/dreamhost-dns-updater) of using mise + railpack to run gronx in a docker container + #### Notes on Windows In Windows if it doesn't find `bash.exe` or `git-bash.exe` it will use `powershell`.