paralleljobs: add useful examples help text
authorStefan Huber <shuber@sthu.org>
Sat, 27 Apr 2013 09:01:30 +0000 (11:01 +0200)
committerStefan Huber <shuber@sthu.org>
Sat, 27 Apr 2013 09:03:00 +0000 (11:03 +0200)
paralleljobs.py

index 1326bc3d9dff55d5435d510668f38ec8a1cfdae2..d8f974d13cfb933cc248785f326a2df898f12885 100755 (executable)
@@ -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]))