https://github.com/cbenoit/autocmd
A simple program that issues a command a certain amount of times with a given interval.
https://github.com/cbenoit/autocmd
cli command-line command-line-app productivity
Last synced: over 1 year ago
JSON representation
A simple program that issues a command a certain amount of times with a given interval.
- Host: GitHub
- URL: https://github.com/cbenoit/autocmd
- Owner: CBenoit
- License: mit
- Created: 2017-06-19T15:56:44.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-14T01:46:27.000Z (almost 8 years ago)
- Last Synced: 2025-03-15T22:53:59.040Z (over 1 year ago)
- Topics: cli, command-line, command-line-app, productivity
- Language: Rust
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# AutoCMD
A simple program that issues a command a certain amount of times with a given interval.

## Usage
```
autocmd [FLAGS] [OPTIONS] --interval [--] ...
```
With the command to issue.
Available flags:
-h, --help Prints help information
-o, --print_output Show the chosen command outputs in the standard output (dosen't cancel --quiet)
-q, --quiet Disable AutoCMD standard outputs (doesn't cancel --print_output)
-V, --version Prints version information
Available options:
-i, --interval Interval between commands in seconds
-r, --repeat Repeat times and stop
Note that if repeat option is not provided the program shall run indefinitely.
I personally sometimes use it like so:
```
$ autocmd -i 300 -- cvlc --play-and-stop --play-and-exit --quiet notif.wav
```
To indefinitely play a sound every 5 minutes with `cvlc`.
## Build
This program is written in [Rust](https://www.rust-lang.org). As such, you can simply build it with cargo:
```
$ cargo build --release
```
The `autocmd` program shall be found in the folder `./target/release`.