From 7797f7e17b583385eaf0caa0e1a592210a71b7c7 Mon Sep 17 00:00:00 2001 From: Stefan Huber Date: Sat, 27 Apr 2013 11:01:30 +0200 Subject: [PATCH] paralleljobs: add useful examples help text --- paralleljobs.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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])) -- 2.39.5