https://github.com/noraworld/cron-conf
https://github.com/noraworld/cron-conf
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/noraworld/cron-conf
- Owner: noraworld
- Created: 2021-07-23T02:56:55.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-01T07:33:06.000Z (over 1 year ago)
- Last Synced: 2024-05-02T05:54:12.853Z (over 1 year ago)
- Language: Shell
- Size: 960 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cron-conf
If you don’t specify a file path, a command is executed in home directory.
In other words, if you specify a absolute path, a command is exected in any directory.When you want to use `sudo`, you should register a job as a root user.
It’s dangerous and troublesome to execute `sudo` as a normal user.It’s not recommended to create or edit a job with `crontab -e`.
You can write a job to a file and load it instead.To reflect a file to crontab, execute the following command.
```shell
cron-apply
```To confirm what is executed by crontab, execute the following command.
```shell
crontab -l | less
```Or
```shell
crontab -l | batcat -l ruby
```## Useful tool
* [Crontab.guru - The cron schedule expression editor](https://crontab.guru/#*_*_*_*_*)