code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/sh # ============================================== # Create the database # ============================================== # ATTENTION: this is a sample script, modify the # parameters according to your needs. Read the # OAIToolkit Manual for the details. # ============================================== # se...
Shell
@echo off rem ============================================== rem Modify the MARCXML files rem ============================================== rem ATTENTION: this is a sample script, modify the rem parameters according to your needs. Read the rem OAIToolkit Manual for the details. rem ==================================...
Shell
#!/bin/sh # ============================================== # convert the MARC files to MARCXML and import to MySQL # ============================================== # ATTENTION: this is a sample script, modify the # parameters according to your needs. Read the # OAIToolkit Manual for the details. # ===================...
Shell
#!/bin/sh # ============================================== # convert the MARC files to MARCXML as deleted and import to MySQL # ============================================== # ATTENTION: this is a sample script, modify the # parameters according to your needs. Read the # OAIToolkit Manual for the details. # ========...
Shell
#!/bin/sh # ============================================== # Create the database user # ============================================== # Read the OAIToolkit Manual for the details. # ============================================== if [ $# -ne 4 ] then echo "$0 [root] [root's password] [new user] [new user's password]...
Shell
#!/bin/sh # ====================================================== # Import the MARCXML files as deleted to Lucene Database # ====================================================== # ATTENTION: this is a sample script, modify the # parameters according to your needs. Read the # OAIToolkit Manual for the details. # ==...
Shell
#!/bin/bash # # Copyright (C) 2007 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
Shell
#!/bin/bash # # Copyright (C) 2007 The Android Open Source Project # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by ap...
Shell
python glsl2header.py
Shell
#! /bin/sh # depcomp - compile a program generating dependencies as side-effects scriptversion=2007-03-29.01 # Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software # Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public ...
Shell
#! /bin/bash # libtool - Provide generalized library-building support services. # Generated automatically by config.status (pulseaudio) 0.9.21-rebootstrapped # Libtool was configured on host debian-xen: # NOTE: Changes made to this file will be lost: look at ltmain.sh. # # Copyright (C) 1996, 1997, 1998, 1999, 2000,...
Shell
#!/bin/sh # Print a version string. scriptversion=2008-04-08.07 # Copyright (C) 2007-2008 Free Software Foundation # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at you...
Shell
#! /bin/sh # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # # Copyright 1996-2010 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # # This file is fre...
Shell
# Generated from ltmain.m4sh. # ltmain.sh (GNU libtool) 2.2.6b # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc. # This is free software; see the source for copying conditions. There is NO # ...
Shell
## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- ## Copyright (C) 2001 Eazel, Inc. ## Author: Maciej Stachowiak <mjs@noisehavoc.org> ## Kenneth Christiansen <kenneth@gnu.org> ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU ...
Shell
#!/bin/sh # install - install a program, script, or datafile scriptversion=2006-12-25.00 # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the # following copyright and license. # # Copyright (C) 1994 X Consortium # # Permission is hereby ...
Shell
#!/bin/sh # This file is part of PulseAudio. # # Copyright 2006 Lennart Poettering # Copyright 2006 Pierre Ossman <ossman@cendio.se> for Cendio AB # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Fou...
Shell
#!/bin/sh # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is d...
Shell
#!/bin/sh # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is d...
Shell
#!/bin/sh # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is d...
Shell
#! /bin/sh # Common stub for a few missing GNU programs while installing. scriptversion=2006-05-10.23 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006 # Free Software Foundation, Inc. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redi...
Shell
#!/bin/bash # This file is part of PulseAudio. # # PulseAudio is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # PulseAudio is...
Shell
#! /bin/sh # Wrapper for compilers which do not understand `-c -o'. scriptversion=2005-05-14.22 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify # it under the terms of the ...
Shell
#!/bin/sh -e ### BEGIN INIT INFO # Provides: pulseaudio esound # Required-Start: $remote_fs $syslog dbus # Required-Stop: $remote_fs $syslog dbus # Should-Start: dbus # Should-Stop: dbus # Default-Start: 2 3 4 5 # Default-Stop: 1 # Short-Description: Start the PulseAudio sound server...
Shell
#! /bin/sh # postinst script for pulseaudio set -e # summary of how this script can be called: # * <postinst> `configure' <most-recently-configured-version> # * <old-postinst> `abort-upgrade' <new version> # * <conflictor's-postinst> `abort-remove' `in-favour' <package> # <new-version> #...
Shell
#!/bin/sh set -e #DEBHELPER# if [ "$1" = "purge" ] ; then deluser --quiet --system pulse > /dev/null || true delgroup --quiet --system pulse-access > /dev/null || true delgroup --quiet --system pulse-rt > /dev/null || true fi exit 0
Shell
#!/bin/sh branch="master" trap exit ERR rm -rf _tmp git clone git://github.com/pixhawk/mavlink.git -b $branch _tmp rm -rf _tmp/.git rsync -av _tmp/* . rm -rf _tmp svn add --force *
Shell
#configure the amount of memory here #cd ${MST_INSTANCE}/../.. export JAVA_OPTS="-server -Xms${MEMORY}M -Xmx${MEMORY}M" ${TOMCAT_HOME}/bin/startup.sh #cd ~-
Shell
java -cp $(ls -1 /cygdrive/c/dev/xc/mst/svn/branches/bens_perma_branch/mst-service/example/build/lib/*.jar | gawk '{t=t";"$1} END {gsub(/\/cygdrive\/c/, "c:", t); print t}') org.testng.TestNG -testclass xc.mst.common.test.GenericTest # /usr/local/tomcat #$ java -cp './lib/*:/usr/local/tomcat/webapps/MetadataServicesTo...
Shell
rm -fR ${MST_INSTANCE}/solr/data
Shell
fileName='initial.xml' baseUrl='http://128.151.244.137:8080/OAIToolkit/oai-request.do?verb=ListRecords' extraUrl='&metadataPrefix=marc21&from=2011-06-23T14:45:00Z' folder='/xc/file_harvest/137_delete_2' rm -fR $folder mkdir -p $folder date echo "sending request ${baseUrl}${extraUrl}" curl -s ${baseUrl}${extraUrl} | ...
Shell
folder=${1} echo compressing ${folder} mkdir -p ${folder}_ids rm -fR ./${folder}_ids/* cd ${folder} for file in * do echo $file grep 'oai:library.rochester.edu:URVoyager1/' $file > ../${folder}_ids/${file} done cd ~-
Shell
folder=${1} echo extracting sets for ${folder} mkdir -p ${folder}_sets rm -fR ./${folder}_sets/* cd ${folder} for file in * do echo $file grep '<setSpec>' $file > ../${folder}_sets/${file} done cd ~-
Shell
#find ./ -name \*.xml -printf '"%h/%f"\n' | grep -v svn | grep -v '\/\(bin\|build\|input\|output\)\/' | xargs grep -Hc 'Copyright (c) 2009 University of Rochester' | gawk -F ':' '$2==0{print $1}' # which files have no copyrights? #find ./ -name \*.java -printf '"%h/%f"\n' | grep -v svn | grep -v '\/\(bin\|build\|input...
Shell
export BACKUP_FOLDER="${BASE_DIR}/backups/$(date +%Y%m%d_%H%M%S)" mkdir -p ${BACKUP_FOLDER} 2> /dev/null . ./scripts/backup_logs.sh #. ./scripts/backup_db.sh #. ./scripts/backup_index.sh
Shell
# admin > eXtensible Catalog > Solr ...> Delete... #mysqldump --no-data --add-drop-table -u root --password=root xc10rctest xc_entity_properties xc_entity_relationships xc_sql_metadata node node_comment_statistics node_revision mysqldump --no-data --add-drop-table -u root --password=root xc10rctest xc_entity_propertie...
Shell
export server="localhost:8080/drupal-solr" curl http://$server/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>' curl http://$server/update -H "Content-Type: text/xml" --data-binary '<commit />' curl http://$server/update -H "Content-Type: text/xml" --data-binary '<optimize />'
Shell
#folder1=MARCNormalization folder1=MARCToXCTransformation input_folder2=expected_output_records #input_folder2=mock_harvest_expected_output output_folder2=actual_output_records #output_folder2=mock_harvest_actual_output folder3=orig-186 #folder3=randys-30 input_file_prefix="oai-mst.rochester.edu-MetadataServicesToo...
Shell
export DB_NAME="perftest" /usr/local/mysql/bin/mysql -u root --password=Mxdev08 -e "show variables like 'key_buffer_size'" /usr/local/mysql/bin/mysql -u root --password=Mxdev08 -e "show status like 'key_reads'" /usr/local/mysql/bin/mysql -u root --password=Mxdev08 -e "show status like 'key_read_requests'" /usr/local/...
Shell
#export SERVER=localhost:8080; #export JSESSIONID=blah-blah; # currently need to manually find the JSESSIONID and supply it, log in via browser, inspect its variables to grab JSESSIONID echo curl "http://${SERVER}/MetadataServicesToolkit/solr/update;jsessionid=${JSESSIONID}" -H "Content-Type: text/xml" --data-binary '...
Shell
#cd mst-service/custom/MARCNormalization cd mst-service/custom/MARCToXCTransformation old_dir="test/input_records/orig-186" new_dir="test/mock_harvest_input/orig_186" pwd rm -fR $new_dir 2> /dev/null mkdir $new_dir echo '<?xml version="1.0" encoding="UTF-8"?><OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:x...
Shell
for file in $(svn status | gawk '{print $2}' | grep -v '\.properties' | sed 's/Changelist//g' | sed '/^$/d' | sed 's/\\/\//g') do echo ${file} scp ${file} benjamina@128.151.244.170:/xc/mst/svn/branches/bens_perma_branch/${file} > /dev/null done
Shell
${TOMCAT_HOME}/bin/shutdown.sh sleep 5 ps -ef | grep "java.*\-Xms${MEMORY}M" | awk '{print $2}' | xargs kill -9
Shell
echo pass: ${REMOTE_MYSQL_PASS} echo port: ${REMOTE_MYSQL_PORT} while [ 1=1 ] do mysql -s -P ${REMOTE_MYSQL_PORT} -u root --password=${REMOTE_MYSQL_PASS} -e "select 1;" > /dev/null sleep 20 done
Shell
# the first thing I did was download the four mrc files from here: # http://docushare.lib.rochester.edu/docushare/dsweb/View/Collection-6173 # and put them in the "randys30" folder # rename marc files to mrc # I simply added a prefix to them (eg 01-) # you need a fresh oaitoolkit. Simply delete any files in the lucene...
Shell
#tr -d "\000-\011\013-\177" < ${1} | xxd tr -d "\000-\177" < ${1} | xxd
Shell
mkdir -p ./scripts/temp mysql --raw -N -D metadataservicestoolkit -u root --password=root -e "select xml from records_xml where id=1" | xmllint --format - > ./scripts/temp/1.xml mysql --raw -N -D metadataservicestoolkit -u root --password=root -e "select xml from records_xml where id=176" | xmllint --format - > ./scrip...
Shell
. scripts/env/local.sh . scripts/env/local.pass.sh ant -Dbox=${1} prepareWebApp . scripts/env/${1}.sh . scripts/env/${1}.pass.sh 2> /dev/null scripts/remote_1.sh ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "cd ${REMOTE_BASE_DIR}; scripts/go.sh ${1} stop_tomcat" scripts/push_code.sh ${1} ssh ${REMOTE_USER}@${REMOTE_BOX_NAME...
Shell
${MYSQL_DIR}mysql -u ${MYSQL_USER} --password=${MYSQL_PASS} -D MetadataServicesToolkit < ./scripts/sql/${1}
Shell
echo ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "mkdir -p ${REMOTE_BASE_DIR}/dist" ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "mkdir -p ${REMOTE_BASE_DIR}/dist" scp dist/* ${REMOTE_USER}@${REMOTE_BOX_NAME}:${REMOTE_BASE_DIR}/dist scp MetadataServicesToolkit.war ${REMOTE_USER}@${REMOTE_BOX_NAME}:${REMOTE_BASE_DIR}/dist
Shell
. scripts/env/local.sh . scripts/env/local.pass.sh echo "ant -Dbox=${1} prepareWebApp" ant -Dbox=${1} prepareWebApp . scripts/env/${1}.sh . scripts/env/${1}.pass.sh 2> /dev/null scripts/remote_1.sh ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "cd ${REMOTE_BASE_DIR}; scripts/go.sh ${1} stop_tomcat" scripts/push_code.sh ${1} ...
Shell
gcc -L/usr/local/lib/ -lxml2 -I/usr/include/libxml2 -o ./scripts/test_libxml2 ./scripts/test_libxml2.c ./scripts/test_libxml2 ./docs/393842.xml
Shell
ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "mkdir -p ${REMOTE_BASE_DIR}/scripts/env" ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "mkdir -p ${REMOTE_BASE_DIR}/scripts/sql" ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "mkdir -p ${REMOTE_BASE_DIR}/sql" scp scripts/*.sh ${REMOTE_USER}@${REMOTE_BOX_NAME}:${REMOTE_BASE_DIR}/scripts > /dev/nu...
Shell
mysql -h ${REMOTE_BOX_NAME} -u ${MYSQL_USER} --password=${MYSQL_PASS} -D ${REPO} -e "delete from record_predecessors; delete from record_sets; delete from record_updates; delete from records; delete from records_xml;"
Shell
./scripts/run_sql.sh data/first_50_records_of_6M_norm_out.sql ./scripts/run_sql.sh data/first_50_records_xml_of_6M_norm_out.sql
Shell
die () { echo >&2 "$@" exit 1 } [ "$#" -eq 1 ] || die "1 argument required, $# provided" servicename=${1} dir=./mst-service/custom/${servicename} #baseurl=${2} baseurl="http\://code.google.com/p/xcmetadataservicestoolkit/source/browse/branches/bens_perma_branch/mst-service/custom/${servicename}/src/" echo add...
Shell
# USAGE: # ./speed_test.sh /path/to/my/file /path/to/destination t0=`scripts/time_ms.sh` # before you run this script create a file to cp # just for a few seconds # cat /dev/zero > myfile.zero cp $1 $2 t1=`scripts/time_ms.sh` seconds=`echo $t1 - $t0 | bc` millis=`echo "$seconds * 1000" | bc` bytes=`ls -lad ~/myfile...
Shell
die () { echo >&2 "$@" exit 1 } [ "$#" -eq 1 ] || die "1 argument required, $# provided" mysqldump --no-data --add-drop-table -u root --password=root ${1} > ./build/${1}.sql mysql -u root --password=root -D ${1} < ./build/${1}.sql
Shell
if [ $# -eq 0 ] then echo 'usage examples: ' echo ' ./scripts/go.sh 170 restart_tomcat' echo ' ./scripts/go.sh 170 remote backup' exit fi . scripts/env/${1}.sh . scripts/env/${1}.pass.sh 2> /dev/null export BACKUP_FOLDER="${REMOTE_BASE_DIR}/backups/$(date +%Y%m%d_%H%M%S)" scripts/${2}.sh ${1} ${2} ${3} . scripts/...
Shell
INDEX_FOLDER=${BACKUP_FOLDER}/index mkdir -p ${INDEX_FOLDER} cd ${INDEX_FOLDER} ORIG_PWD=${PWD} tar cf ./solr.tar ${MST_INSTANCE}/solr gzip solr.tar cd ${ORIG_PWD}
Shell
for file in $(find $TOMCAT_HOME/logs/*) do rm $file echo removing $file done
Shell
echo $TOMCAT_HOME
Shell
scripts/remote_1.sh ssh ${REMOTE_USER}@${REMOTE_BOX_NAME} "cd ${REMOTE_BASE_DIR}; scripts/go.sh ${1} ${3}"
Shell
#!/bin/ksh if [ ! -x /var/tmp/time_ms ] then cat > /tmp/time_ms.c << % #include <sys/time.h> main() { struct timeval tv; gettimeofday(&tv,(void*)0); printf("%d.%d\n",tv.tv_sec,tv.tv_usec/1000); } % PATH=$PATH:/usr/sfw gcc /tmp/time_ms.c -o /var/tmp/time_ms fi /var/tmp/tim...
Shell
TortoiseMerge ./mst-service/custom/MARCToXCTransformation/test/expected_output_records/orig-186/oai-mst.rochester.edu-MetadataServicesToolkit\ MARCNormalization\ ${1}.xml ./mst-service/custom/MARCToXCTransformation/build/test/actual_output_records/orig-186/oai-mst.rochester.edu-MetadataServicesToolkit\ MARCNormalizatio...
Shell
for f in $(ls -1 ./mst-service/custom/MARCNormalization/test/input_records/NormInput/*.xml) #for f in $(ls -1 ./mst-service/custom/MARCNormalization/test/input_records/NormInput/481.xml) do #cat ${f} | sed 's/\(<?xml.*\)\".>/\1" encoding=\"UTF-8\"?>/g' > ${f}.new #mv ${f}.new ${f} #cat ${f}.new.2 >> ${f} #rm ${f}.n...
Shell
o="./mst-service/custom/MARCNormalization/test/expected_output_records/orig-186" for fn in $(ls -1 $o/*.xml | sed 's/.*\///g') do echo $o/$fn.bk #cat ${o}/$fn | sed '/<status>active<\/status>/d' > ${o}/${fn}.bak cat $o/$fn | sed '/<status>active<\/status>/d' | sed 's/<header>/\<header status=\"active\"\>/g' > $o/${f...
Shell
rm out 2> /dev/null #for fn in $(ls -1 ./mst-service/custom/MARCNormalization/test/input_records/orig-186/1*.xml | sed 's/.*\///g') for fn in $(ls -1 ./mst-service/custom/MARCNormalization/test/input_records/orig-186/*.xml | sed 's/.*\///g') do ef=./mst-service/custom/MARCNormalization/test/expected_output_records/ori...
Shell
RECORD_PREFIX='<records xmlns="http://www.openarchives.org/OAI/2.0/"><record><header><identifier>oai:mst.rochester.edu:marcnormalization/@OAI_ID@</identifier><oldFileName>@OLD_FILENAME@</oldFileName></header><metadata>' RECORD_SUFFIX='</metadata></record></records>' OAI_ID=0 #for fn in $(ls -1 ./mst-service/custom/MARC...
Shell
rm out 2> /dev/null url='http://code.google.com/p/xcmetadataservicestoolkit/source/diff?spec=svn983&r=983&format=side&path=/branches/bens_perma_branch/mst-service/custom/MARCNormalization/test/expected_output_records/orig-186/@FILE@' for fn in $(cat out2 | grep '^--.*' | sed 's/.*\/\([0-9]*\.xml\).*/\1/g') do echo ${...
Shell
RECORD_PREFIX='<records xmlns="http://www.openarchives.org/OAI/2.0/"><record><header><identifier>oai:mst.rochester.edu:OAI_ID</identifier></header><metadata>' RECORD_SUFFIX='</metadata></record></records>' OAI_ID=0 SAVEIFS=$IFS IFS=$(echo -en "\n\b") #for f in $(ls -1 ./mst-service/custom/MARCNormalization/test/input_r...
Shell
find . -name \*.jsp | grep -v svn | grep -v build | grep -v bin | xargs grep '\/inc' 2> /dev/null | sed 's/:.*//g' | sort -u > 'incs.out' for file in $(cat incs.out) do echo $file sed 's/\/inc/\/st\/inc/g' $file > $file.out mv -f $file.out $file done
Shell
for (int i=0; i<10; i++) { for (int j=0; j<1024; j++) { StringBuilder sb = new StringBuilder(); for (int k=0; k<1024; k++) { sb.append("1"); } println sb.toString(); } }
Shell
version=${1} sed -i ' ' "s/^mi.version=.*/mi.version=${version}/" ./MST-instances/build.properties sed -i ' ' "s/^mc.version=.*/mc.version=${version}/" ./mst-common/build.properties sed -i ' ' "s/^mp.version=.*/mp.version=${version}/" ./mst-platform/build.properties sed -i ' ' "s/^ms.version=.*/ms.version=${version}/"...
Shell
cp -R $MST_INSTANCE/logs ${BACKUP_FOLDER} #export LOG_FOLDER="${BACKUP_FOLDER}/logs" #mkdir -p ${LOG_FOLDER} #for file in $(ls -1 $MST_INSTANCE/logs/*.txt*) #do # cp ${file} ${LOG_FOLDER} #done #for file in $(find $TOMCAT_HOME/logs/*) #do # cp ${file} ${LOG_FOLDER} #done
Shell
for file in $(ls -1 $MST_INSTANCE/logs/*.txt*) do #echo "" > $file rm $file echo clearing $file done for file in $(find $MST_INSTANCE/logs/ -regex '.*\.txt.[0-9]*') do rm $file echo removing $file done . ./scripts/clear_tc_files.sh
Shell
SQL_FOLDER=${BACKUP_FOLDER}/sqldump mkdir -p ${SQL_FOLDER} ${MYSQL_DIR}/mysqldump --database MetadataServicesToolkit -u ${MYSQL_USER} --password=${MYSQL_PASS} > ${SQL_FOLDER}/mst_dump.sql gzip ${SQL_FOLDER}/mst_dump.sql
Shell
#echo "scp -r ant_build/webapp/* ${REMOTE_USER}@${REMOTE_BOX_NAME}:${TOMCAT_HOME}/webapps/MetadataServicesToolkit" scp -r ant_build/webapp/WEB-INF/classes/* ${REMOTE_USER}@${REMOTE_BOX_NAME}:${TOMCAT_HOME}/webapps/MetadataServicesToolkit/WEB-INF/classes scp ant_build/webapp/WEB-INF/*.xml ${REMOTE_USER}@${REMOTE_BOX_NAM...
Shell
./scripts/clear_logs.sh ./scripts/remove_index.sh #./scripts/run_sql.sh ../../sql/records.sql #./scripts/run_sql.sh delete_all_jobs.sql #./scripts/run_sql.sh delete_all_harvests.sql #./scripts/run_sql.sh delete_records.sql #./scripts/run_sql.sh copy_service.sql cat ./scripts/sql/mst_dump.sql | sed "s/==provider_url==...
Shell
#!/bin/sh ID=$1 CWD=`dirname $0` perl ${CWD}/get_set.pl ${ID}
Shell
#!/bin/sh BIB=$1 CWD=`dirname $0` marcxml=`perl ${CWD}/get_record.pl ${BIB}` if [ -z $marcxml ]; then echo hmmmm marcxml=`perl ${CWD}/get_record.pl ${BIB} xc_marcnormalization` fi echo $marcxml | perl ${CWD}/filter_nonprintable.pl | xmllint --format -
Shell
#!/bin/sh ID=$1 CWD=`dirname $0` marcxml=`perl ${CWD}/get_bib.pl ${ID}` if [ "$?" -ne "0" ]; then exit $? fi if [ -n "$marcxml" ]; then echo $marcxml | perl ${CWD}/filter_nonprintable.pl | xmllint --format - else echo "\"${ID}\" not found!" fi
Shell
cp ./mst-service/custom/DCToXCTransformation/dev.properties.example ./mst-service/custom/DCToXCTransformation/dev.properties cp ./mst-service/custom/MARCAggregation/dev.properties.example ./mst-service/custom/MARCAggregation/dev.properties cp ./mst-service/custom/MARCNormalization/dev.properties.example ./mst-service...
Shell
#!/bin/sh DIR=`dirname $0` cd $DIR LIBDIR="lib" for J in `ls $LIBDIR`; do CLASSPATH="${CLASSPATH}:${LIBDIR}/${J}"; done SOLRCOREDIR="solr" SOLRDATADIR="solr/data" java -cp "$CLASSPATH" xc.mst.utils.OptimizeSolrIndex "${SOLRCOREDIR}" "${SOLRDATADIR}"
Shell
#!/bin/bash find . -name \*.pyc -exec rm {} \; find . -name \*~ -exec rm -i {} \; find . -name \*.class -exec rm -i {} \; chmod -R og-w .
Shell
find . -name \*.pyc -exec rm {} \; python compileall.py .
Shell
#/bin/sh #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 1 ] ; do if [ -f .stopserver ] ; then echo server marked down >> servlog.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt ./map-server fi sleep 5 done
Shell
#/bin/sh #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 3 ] ; do if [ -f .stopserver3 ] ; then echo server marked down >> servlog.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt ./char-server fi sleep 5 done
Shell
#!/bin/sh echo "============================================" echo "= map server status checker... =" echo "============================================" ./map-server.exe & sleep 40 while [ 0 ] do pcpu=` top -n 1| grep map-server | awk '{print $9}' | awk 'BEGIN{FS="."} {print $1}' ` if [ "$pcp...
Shell
#!/bin/bash athena_dir="/home/athena/658/" while [ true ] ; do if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then #echo `date` " -- map-server crashed - restarting" echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log killall -9 map-ser...
Shell
#!/bin/bash case "$1" in map|char|login) # Check for SQL postfix if [ "$2" = "sql" ]; then SERVER="$1-server_sql" else SERVER="$1-server" fi ;; *|""|help) echo "Usage 1: ${0##*/} [server-type] [txt/sql]" echo Server type can be map, login, or char. Examples: echo "$ ./${0##*/} m...
Shell
#!/bin/bash athena_dir="/home/athena/658/" while [ true ] ; do if [ ` ps fauxw | grep map-server | grep -v grep | wc -l ` -eq 0 ];then #echo `date` " -- map-server crashed - restarting" echo `date` " -- map-server crashed - restarting" >> /var/log/athena_status.log killall -9 map-ser...
Shell
#!/bin/bash case "$1" in map|char|login) # Check for SQL postfix if [ "$2" = "sql" ]; then SERVER="$1-server_sql" else SERVER="$1-server" fi ;; *|""|help) echo "Usage 1: ${0##*/} [server-type] [txt/sql]" echo Server type can be map, login, or char. Examples: echo "$ ./${0##*/} m...
Shell
#!/bin/sh echo "============================================" echo "= map server status checker... =" echo "============================================" ./map-server.exe & sleep 40 while [ 0 ] do pcpu=` top -n 1| grep map-server | awk '{print $9}' | awk 'BEGIN{FS="."} {print $1}' ` if [ "$pcp...
Shell
#!/bin/sh # athena starting script by rowla # modified by shazeya@syafi.com (NL101541) PATH=./:$PATH L_SRV=login-server_sql C_SRV=char-server_sql M_SRV=map-server_sql print_start() { # more << EOF echo "Athena Starting..." echo " (c) 2003 Athena Project" echo " modified by shazeya@syafi.co...
Shell
#!/bin/bash # modified by shazeya@syafi.com (NL130240) ./athena-start start sleep 30 while [ true ]; do if [ " 0" = "$(ps | grep -e log | wc -l)" ] || # if [ " 0" = "$(ps | grep -e login | wc -l)" ] || [ " 0" = "$(ps | grep -e char | wc -l)" ] || [ " 0" = "$(ps | gr...
Shell
#/bin/sh #Hi my naem is Kirt and I liek anime ulimit -Sc unlimited while [ 2 ] ; do if [ -f .stopserver2 ] ; then echo server marked down >> servlog.txt else echo restarting server at time at `date +"%m-%d-%H:%M-%S"`>> startlog.txt ./login-server fi sleep 5 done
Shell
#!/bin/sh # athena starting script by rowla # modified by shazeya@syafi.com (NL101541) PATH=./:$PATH L_SRV=login-server_sql C_SRV=char-server_sql M_SRV=map-server_sql print_start() { # more << EOF echo "Athena Starting..." echo " (c) 2003 Athena Project" echo " modified by shazeya@syafi.co...
Shell
#!/bin/bash # modified by shazeya@syafi.com (NL130240) ./athena-start start sleep 30 while [ true ]; do if [ " 0" = "$(ps | grep -e log | wc -l)" ] || # if [ " 0" = "$(ps | grep -e login | wc -l)" ] || [ " 0" = "$(ps | grep -e char | wc -l)" ] || [ " 0" = "$(ps | grep -e map ...
Shell
#!/bin/sh # athena starting script by rowla # modified by shazeya@syafi.com (NL101541) PATH=./:$PATH L_SRV=login-server_sql C_SRV=char-server_sql M_SRV=map-server_sql print_start() { # more << EOF echo "Athena Starting..." echo " (c) 2003 Athena Project" echo " modified by shazeya@syafi.co...
Shell