batch-run-cmd
1 Introduction
See https://github.com/linzhi2013/batch-run-cmd.
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). Furthermore, you can check for the existences of result files
(-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> ...]] [-E <str>]
To run command line by line, and check each exit status.
Then optionally check for the existences of result files.
Each line format:
echo "Hello world" && echo "Where are you?" ;Result-files: /path/to/resultfile1 /path/to/resultfile2
Internally, each line will be split by ";Result-files:" delimiter,
and the part before ";Result-files:" will be treated as a shell command,
the part after ";Result-files:" will be regardeds as result files.
Multiple result files are allowed, seperated by blank space(s).
See https://github.com/linzhi2013/batch-run-cmd for more details.
optional arguments:
-h, --help show this help message and exit
-f <file> commands in a file.
-e <int> [<int> ...] continue On Return Code for a shell command. [[0]]
-E <str> continue On: 'a': all files must exist; 'e': at least
one file must exist; 'o': omitted, i.e. do not check
for existences of files [o]
4 Citation
Currently I have no plan to publish batch-run-cmd.
Metadata
Release files for batch-run-cmd 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| batch-run-cmd-0.0.2.tar.gz | 4.2 kB | Without provenance | Details for batch-run-cmd-0.0.2.tar.gz |
Release files / batch-run-cmd-0.0.2.tar.gz
| Download URL | batch-run-cmd-0.0.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8bfe47fb00fa6caa2e1950d673598b98b79f583c42719aa7a238bf0c55eda28f
|
|
BLAKE2b-256 checksum How to use checksums |
94589560506686e898f652e38a67d8d762dd7257c001348360fafc28fc373d7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3
|
Security for batch-run-cmd 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.