Skip to main content

Repeat command N times every S seconds.

Project description

Repeat command N times every S seconds.

Installation

$ pip install repeat

Usage

usage: repeat [-h] [-n N] [-s S] …

Repeat command N times every S seconds.

positional arguments:
cmd Command to be repeated.
optional arguments:
-h, --help show this help message and exit
-n N repeat N times. (default=10)
-s S repeat every S seconds. (default=1)

Example

# Display disk space every 2 seconds, but stops in 5 times. $ repeat -n 5 -s 2 df -h

Author

  • Park, Hyunwoo <ez.amiryo at gmail.com>
  • Eunchong Yu <kroisse at gmail.com>

Disclaimer

Distributed under MIT license. And use at your own risk. This was not tested carefully.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for repeat, version 0.1.2
Filename, size File type Python version Upload date Hashes
Filename, size repeat-0.1.2.tar.gz (1.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page