---
title: Install repeat on Linux | Snap Store
description: Get the latest version of repeat for Linux - Utility to run and repeat
  commands and capture its output.
url: https://snapcraft.io/repeat
---

# repeat

[Jorge Niedbalski (niedbalski)](https://snapcraft.io/publisher/niedbalski "View all snaps from Jorge Niedbalski (niedbalski)")

* [Jorge Niedbalski (niedbalski)](https://snapcraft.io/publisher/niedbalski "View all snaps from Jorge Niedbalski (niedbalski)")

latest/stable v0.0.5

Install latest/stable of repeat

This channel hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

**Install using the command line**

```
sudo snap install repeat
```

Don't have snapd? [Get set up for snaps](https://snapcraft.io/docs/installing-snapd).

---

### Package name

* repeat

---

### License

* unset

---

### Last updated

* 5 March 2021 - latest/stable
* 5 March 2021 - latest/edge

This snap hasn't been updated in a while. It might be unmaintained and have stability or security issues.

---

##### Report a Snap Store violation

* [Report this Snap](https://snapcraft.io/repeat#report-snap-modal)

---

* [Description](https://snapcraft.io/repeat#tab-description)
* [Security](https://snapcraft.io/repeat#tab-security)

#### Utility to run and repeat commands and capture its output.

### Description

*repeat* allows you to define a set of linux commands that needs to be run with a given periodicity and gather the output
of those commands into a compressed tarball report for further analysis.

```yaml

```
 usage: repeat --config=CONFIG [<flags>]

 Flags:
   -h, --help             Show context-sensitive help (also try --help-long and --help-man).
   -l, --loglevel="info"  Log level: [debug, info, warn, error, fatal]
   -t, --timeout=0s       Timeout: overall timeout for all collectors
   -c, --config=CONFIG    Path to collectors configuration file
   -b, --basedir="/tmp"   Temporary base directory to create the resulting collection tarball
   -r, --results-dir="."  Directory to store the resulting collection tarball
```

```
#### Example configuration

```yaml

collections:
lsof:
command: lsof -i # command to run
run-every: 10s # periodicity
exit-codes: 0 # allowed exit codes (space separed list of accepted exit codes)
timeout: 30s # define a per command timeout

```
 sockstat:
   command: cat /proc/sys/net/ipv4/tcp*mem /proc/net/sockstat
   run-every: 2s
   exit-codes: any

 sar:
   run-once: true   #it can be run a single time
   exit-codes: 0 127 126
   script: |    # a script can be given instead of a command.
     #!/bin/bash

     sar -n EDEV && true

 uname:
   run-once: true
   script: |
     netstat -atn
```

```

#### Running with configuration

An example of running the collection for 5s (could be expressed in s,m,hours)

```yaml

repeat --config metrics.yaml --timeout=5s --results-dir=.

```
### Contributing

Feel free to send PR(s) or reach niedbalski on #freenode or Telegram.
<https://github.com/niedbalski/repeat>.

---

## Install repeat on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the [installing snapd documentation](https://snapcraft.io/docs/installing-snapd).

[### Arch Linux](https://snapcraft.io/install/repeat/arch)

[### CentOS](https://snapcraft.io/install/repeat/centos)

[### Debian](https://snapcraft.io/install/repeat/debian)

[### elementary OS](https://snapcraft.io/install/repeat/elementary)

[### Fedora](https://snapcraft.io/install/repeat/fedora)

[### KDE Neon](https://snapcraft.io/install/repeat/kde-neon)

[### Kubuntu](https://snapcraft.io/install/repeat/kubuntu)

[### Manjaro](https://snapcraft.io/install/repeat/manjaro)

[### Pop!\_OS](https://snapcraft.io/install/repeat/pop)

[### openSUSE](https://snapcraft.io/install/repeat/opensuse)

[### Red Hat Enterprise Linux](https://snapcraft.io/install/repeat/rhel)

[### Ubuntu](https://snapcraft.io/install/repeat/ubuntu)
