Megatest

Hex Artifact Content
Login

Artifact 508f2767c9fa451602dde7d8f252b7e3d24a374e:


0000: 23 21 2f 62 69 6e 2f 62 61 73 68 0a 0a 23 20 54  #!/bin/bash..# T
0010: 68 69 73 20 66 69 6c 65 20 69 73 20 70 61 72 74  his file is part
0020: 20 6f 66 20 4d 65 67 61 74 65 73 74 2e 0a 23 20   of Megatest..# 
0030: 0a 23 20 20 20 20 20 4d 65 67 61 74 65 73 74 20  .#     Megatest 
0040: 69 73 20 66 72 65 65 20 73 6f 66 74 77 61 72 65  is free software
0050: 3a 20 79 6f 75 20 63 61 6e 20 72 65 64 69 73 74  : you can redist
0060: 72 69 62 75 74 65 20 69 74 20 61 6e 64 2f 6f 72  ribute it and/or
0070: 20 6d 6f 64 69 66 79 0a 23 20 20 20 20 20 69 74   modify.#     it
0080: 20 75 6e 64 65 72 20 74 68 65 20 74 65 72 6d 73   under the terms
0090: 20 6f 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65   of the GNU Gene
00a0: 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e  ral Public Licen
00b0: 73 65 20 61 73 20 70 75 62 6c 69 73 68 65 64 20  se as published 
00c0: 62 79 0a 23 20 20 20 20 20 74 68 65 20 46 72 65  by.#     the Fre
00d0: 65 20 53 6f 66 74 77 61 72 65 20 46 6f 75 6e 64  e Software Found
00e0: 61 74 69 6f 6e 2c 20 65 69 74 68 65 72 20 76 65  ation, either ve
00f0: 72 73 69 6f 6e 20 33 20 6f 66 20 74 68 65 20 4c  rsion 3 of the L
0100: 69 63 65 6e 73 65 2c 20 6f 72 0a 23 20 20 20 20  icense, or.#    
0110: 20 28 61 74 20 79 6f 75 72 20 6f 70 74 69 6f 6e   (at your option
0120: 29 20 61 6e 79 20 6c 61 74 65 72 20 76 65 72 73  ) any later vers
0130: 69 6f 6e 2e 0a 23 20 0a 23 20 20 20 20 20 4d 65  ion..# .#     Me
0140: 67 61 74 65 73 74 20 69 73 20 64 69 73 74 72 69  gatest is distri
0150: 62 75 74 65 64 20 69 6e 20 74 68 65 20 68 6f 70  buted in the hop
0160: 65 20 74 68 61 74 20 69 74 20 77 69 6c 6c 20 62  e that it will b
0170: 65 20 75 73 65 66 75 6c 2c 0a 23 20 20 20 20 20  e useful,.#     
0180: 62 75 74 20 57 49 54 48 4f 55 54 20 41 4e 59 20  but WITHOUT ANY 
0190: 57 41 52 52 41 4e 54 59 3b 20 77 69 74 68 6f 75  WARRANTY; withou
01a0: 74 20 65 76 65 6e 20 74 68 65 20 69 6d 70 6c 69  t even the impli
01b0: 65 64 20 77 61 72 72 61 6e 74 79 20 6f 66 0a 23  ed warranty of.#
01c0: 20 20 20 20 20 4d 45 52 43 48 41 4e 54 41 42 49       MERCHANTABI
01d0: 4c 49 54 59 20 6f 72 20 46 49 54 4e 45 53 53 20  LITY or FITNESS 
01e0: 46 4f 52 20 41 20 50 41 52 54 49 43 55 4c 41 52  FOR A PARTICULAR
01f0: 20 50 55 52 50 4f 53 45 2e 20 20 53 65 65 20 74   PURPOSE.  See t
0200: 68 65 0a 23 20 20 20 20 20 47 4e 55 20 47 65 6e  he.#     GNU Gen
0210: 65 72 61 6c 20 50 75 62 6c 69 63 20 4c 69 63 65  eral Public Lice
0220: 6e 73 65 20 66 6f 72 20 6d 6f 72 65 20 64 65 74  nse for more det
0230: 61 69 6c 73 2e 0a 23 20 0a 23 20 20 20 20 20 59  ails..# .#     Y
0240: 6f 75 20 73 68 6f 75 6c 64 20 68 61 76 65 20 72  ou should have r
0250: 65 63 65 69 76 65 64 20 61 20 63 6f 70 79 20 6f  eceived a copy o
0260: 66 20 74 68 65 20 47 4e 55 20 47 65 6e 65 72 61  f the GNU Genera
0270: 6c 20 50 75 62 6c 69 63 20 4c 69 63 65 6e 73 65  l Public License
0280: 0a 23 20 20 20 20 20 61 6c 6f 6e 67 20 77 69 74  .#     along wit
0290: 68 20 4d 65 67 61 74 65 73 74 2e 20 20 49 66 20  h Megatest.  If 
02a0: 6e 6f 74 2c 20 73 65 65 20 3c 68 74 74 70 3a 2f  not, see <http:/
02b0: 2f 77 77 77 2e 67 6e 75 2e 6f 72 67 2f 6c 69 63  /www.gnu.org/lic
02c0: 65 6e 73 65 73 2f 3e 2e 0a 0a 69 66 20 5b 20 2d  enses/>...if [ -
02d0: 65 20 66 75 6c 6c 72 75 6e 2f 64 62 2f 6d 6f 6e  e fullrun/db/mon
02e0: 69 74 6f 72 2e 64 62 20 5d 3b 74 68 65 6e 0a 73  itor.db ];then.s
02f0: 71 6c 69 74 65 33 20 66 75 6c 6c 72 75 6e 2f 64  qlite3 fullrun/d
0300: 62 2f 6d 6f 6e 69 74 6f 72 2e 64 62 20 3c 3c 20  b/monitor.db << 
0310: 45 4f 46 0a 2e 68 65 61 64 65 72 20 6f 6e 0a 2e  EOF..header on..
0320: 6d 6f 64 65 20 63 6f 6c 75 6d 6e 0a 73 65 6c 65  mode column.sele
0330: 63 74 20 2a 20 66 72 6f 6d 20 73 65 72 76 65 72  ct * from server
0340: 73 20 6f 72 64 65 72 20 62 79 20 73 74 61 72 74  s order by start
0350: 5f 74 69 6d 65 20 64 65 73 63 3b 0a 2e 71 0a 45  _time desc;..q.E
0360: 4f 46 0a 66 69 0a                                OF.fi.