Skip to content

Commit

Permalink
readme: move explanation of ...
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarrison committed Nov 13, 2024
1 parent 61d297e commit 10f9d2b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,15 @@ Install with pip:

pip install disbatch

Create a file `Tasks` with a list of commands you want to run. These should be Bash commands like one would run on the command line:
Create a file called `Tasks` with a list of commands you want to run. These should be Bash commands as one would run on the command line:

myprog arg0 &> myprog_0.log
myprog arg1 &> myprog_1.log
...
myprog argN &> myprog_N.log

This file can have as many tasks (lines) as you like. The `...` is just a stand-in and wouldn't literally be in the task file.

Then, to run 5 tasks at a time in parallel on your local machine, run:

disBatch -s localhost:5 Tasks
Expand All @@ -39,8 +41,6 @@ long list of commands (aka *tasks*):
...
myprog -a 9 -b 9 -c 9

This represents a file with 1000 lines; the `...` is just a stand-in and wouldn't literally be in the task file.

One could run this by submitting 1,000 separate jobs to a cluster, but that may
present problems for the queuing system and can behave badly if the
system is configured to handle jobs in a simple first come, first serve
Expand Down

0 comments on commit 10f9d2b

Please sign in to comment.