From d6b9b4e06ee566ba7c15039b479b2e95391d0e21 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sat, 17 Sep 2016 20:07:05 -0400 Subject: [PATCH] a few new scripts. grid land lister does a dump of the uuids and such for land on my simulator; not very generic yet. list old linux packs shows linux-image and linux-header that are in rc state, so not installed but also not clean. rounder is a nice script or test runner that will keep going until a failure occurs; it keeps all the logs from each run in a directory under TMP. --- scripts/opensim/grid_land_lister.sh | 13 +++++++++ scripts/system/list_old_linux_packages.sh | 8 ++++++ scripts/unit_test/rounder.sh | 33 +++++++++++++++++++++++ 3 files changed, 54 insertions(+) create mode 100644 scripts/opensim/grid_land_lister.sh create mode 100644 scripts/system/list_old_linux_packages.sh create mode 100644 scripts/unit_test/rounder.sh diff --git a/scripts/opensim/grid_land_lister.sh b/scripts/opensim/grid_land_lister.sh new file mode 100644 index 00000000..a4909e30 --- /dev/null +++ b/scripts/opensim/grid_land_lister.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# creates a file with the information about land on the +# simulator. + +#hmmm: need to abstract the gridroot user, the output file name +#(although support a default), and the database name. + +mysql -u gridroot -p > $HOME/dump_of_opensim_land_table.txt <&1 | tee $outputfile + if [ ${PIPESTATUS[0]} -ne 0 ]; then + echo FAILURE IN RUN $round + break + fi + echo round $round successful. +done + -- 2.34.1