65c62d9b8e50c4c0240c215c7027ad83133ef700 rhead Thu Apr 5 19:53:16 2012 -0700 Removed more of the warnings about re-typing password. diff --git src/utils/qa/bigPush.csh src/utils/qa/bigPush.csh index 356ca86..e2e55a8 100755 --- src/utils/qa/bigPush.csh +++ src/utils/qa/bigPush.csh @@ -18,47 +18,40 @@ set tablelist="" set warningMessage="\n usage: `basename $0` database tableList\n\ \n\ Pushes tables in list to mysqlbeta and records size. \n\ Requires sudo access to mypush to run.\n\ \n\ If prompted to re-type password, sudo timeout length\n\ may not be set to a long enough interval. Check with\n\ admins if this is the case.\n\ \n\ Will report total size of push and write two files:\n\ db.tables.push -> output for all tables from mypush\n\ db.tables.pushSize -> size of push\n" - if ($2 == "") then echo $warningMessage exit else set db=$1 set tablelist=$2 endif set trackName=`echo $2 | sed -e "s/Tables//"` -# echo trackName = $trackName -echo -echo "Will have to re-type password after very large tables" -echo "If you take too long to re-type your password, the table" -echo "the script stalled on might not get pushed." -echo rm -f $db.$trackName.push foreach table (`cat $tablelist`) echo pushing "$table" sudo -v # validate sudo timestamp and extend timeout sudo mypush $db "$table" $sqlbeta >> $db.$trackName.push echo "$table" >> $db.$trackName.push end echo # -------------------------------------------- # "check that all tables were pushed:" echo updateTimes.csh $db $tablelist