Skip to main content

A simple tool to launch shell command many times.

Project description

Shell Command Launcher

A simple tool to launch shell command many times.

Args

command

The command to run, which is a string. You can use $<var_name> or ${<var_name>} to represent a var defined in arg_dict. For details, see the template doc.

arg_dict

A dict of args to replace the var in cmd. The key is the var name, and the value is a list of the var value.

The command will run with all combinations of the var values.

log_dir

The dir to save the log file. If set, the output of each command will be saved in log_dir/<var_name1>_<var_value1>__<var_name2>_<var_value2>...__<var_namen>_<var_valuen>.log.

num

The number of times to run the same command. If set, each command will run num times. If log_dir is also set, the output of each command will be saved in log_dir/<var_name1>_<var_value1>__<var_name2>_<var_value2>...__<var_namen>_<var_valuen>_<num>.log.

parallel_num

The number of tasks to run in parallel. If set, we will run parallel_num tasks in parallel.

sleep_time

The sleep time in seconds between each command, 0 by default. We will sleep sleep_time seconds between each command.

other args

Other args will be passed to subprocess.Popen as kwargs. For details, see the doc.

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

shell-command-launcher-1.0.1.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

shell_command_launcher-1.0.1-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file shell-command-launcher-1.0.1.tar.gz.

File metadata

File hashes

Hashes for shell-command-launcher-1.0.1.tar.gz
Algorithm Hash digest
SHA256 08133643005dcc45e03c03cc6e1e98230e510d31982eef322a3fece44a1291c3
MD5 d8196801f8682f6e09b2aefe0a4714c5
BLAKE2b-256 acee6205aaa20446503c51aaf8d8dfc162e158db88476fc3bf282092471f75d3

See more details on using hashes here.

File details

Details for the file shell_command_launcher-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for shell_command_launcher-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4aff9a8e78c93a1566f8907c5c86f7e942a42e5d57039508c025d9b0decc8a1f
MD5 b6efde0665ce509eb7cf2b9b9c883f25
BLAKE2b-256 3ecbf5fb31e2ba5ced780f75940c96d6468368763cc22cfe3415810640c70255

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page