An open API service indexing awesome lists of open source software.

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.

Awesome Lists containing this project

README

          

# AutoCMD

A simple program that issues a command a certain amount of times with a given interval.

![Example screenshot](http://i.imgur.com/5KYLaXs.png)

## 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`.