Skip to main content

To run commands line by line, and check each exit status

Project description


1 Introduction


This is a Python3 package which will read command lines from an input file, and run each line of command one by one, and check their exit status.

More importantly, if one command fails, you can just jump to next command (-e option)

2 Installation

with pip

$ pip install batch-run-cmd

There will be a command batch-run-cmd created under the same directory as your pip command.

3 Usage

run batch_run_cmd

$ batch_run_cmd
usage: batch_run_cmd [-h] [-f <file>] [-e <int> [<int> ...]]

    To run commands line by line, and check each exit status.
    See for more details.

optional arguments:
  -h, --help            show this help message and exit
  -f <file>             commands in a file.
  -e <int> [<int> ...]  continueOnReturnCode [[0]]

4 Citation

Currently I have no plan to publish batch-run-cmd.

Project details

Download files

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

Source Distribution

batch_run_cmd-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded source

Supported by

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