From: Stefan Huber Date: Sat, 27 Apr 2013 09:01:30 +0000 (+0200) Subject: paralleljobs: add useful examples help text X-Git-Url: https://git.sthu.org/?a=commitdiff_plain;h=7797f7e17b583385eaf0caa0e1a592210a71b7c7;p=shutils.git paralleljobs: add useful examples help text --- diff --git a/paralleljobs.py b/paralleljobs.py index 1326bc3..d8f974d 100755 --- a/paralleljobs.py +++ b/paralleljobs.py @@ -177,11 +177,14 @@ estimating the finished workload so far. The entries default to 1 and may be set externally. Examples: + # create cmds.sh with jobs + echo "ulimit -v 2000000 -t 1200; ./isprime 65535" > cmds.sh + echo "ulimit -v 2000000 -t 1200; ./isprime 65537" >> cmds.sh # create an initial database, but do not work - {0} -d jobs.db -c cmds.sh -p 'time REAL, mem INTEGER' + {0} -d jobs.db -c cmds.sh -p 'number INTEGER, time REAL, mem INTEGER' # launch two workers - {0} -d jobs.db -w - {0} -d jobs.db -w + {0} -d jobs.db -w & + {0} -d jobs.db -w & # print status info {0} -d jobs.db -s """.format(sys.argv[0]))