diff options
author | Matt Strapp <matt@mattstrapp.net> | 2024-12-18 11:47:56 -0600 |
---|---|---|
committer | Matt Strapp <matt@mattstrapp.net> | 2024-12-18 11:47:56 -0600 |
commit | caf2267550a5db7aeefb3c66a4fc7c1801b3da48 (patch) | |
tree | bb4df1d3b1119f8ba5dd6612d8e02f5185fb4224 /contrib/run-in-parallel | |
parent | elaborate more on readme (diff) | |
download | wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.tar wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.tar.gz wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.tar.bz2 wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.tar.lz wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.tar.xz wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.tar.zst wwb-caf2267550a5db7aeefb3c66a4fc7c1801b3da48.zip |
add some contrib scripts
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to 'contrib/run-in-parallel')
-rw-r--r-- | contrib/run-in-parallel | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/run-in-parallel b/contrib/run-in-parallel new file mode 100644 index 0000000..2ded83c --- /dev/null +++ b/contrib/run-in-parallel @@ -0,0 +1,7 @@ +#!/bin/sh + +# Make sure that the program is up to date. +cargo build --release + +# Run the program in parallel and make sure the priority is low. +seq 1 "$(nproc)" | xargs -P 0 -I _ sh -c "nice -n 19 ./target/release/wwb game._.bin | tee -ai output._.log"
\ No newline at end of file |