code
stringlengths
1
1.96M
language
stringclasses
1 value
#!/bin/zsh # -*-coding: latin-1;-*- ########################################################## # # title: zsh options config file # # filename: /etc/zsh/options # # author(s): Alessandro Molari (mola89.molarulez.com), # Luca Molari # # license: This file is licensed under the GPLv2 # For m...
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.playserial.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.befun.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.videacesky.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.online-files rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.eserial.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.serialycz.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.petka.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.csfd-trailers rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.joj.sk rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.markiza.sk rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.zkouknito.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.gordon.ura.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.play-movie.eu rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.mtr.sk rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.hejbejse.tv rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.rajfilmy.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.teevee.sk rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.nastojaka.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.najfilmy.com rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#!/bin/bash TOOLS=$(dirname "$0") BUILD_DIR=repo echo "Cleaning up *.pyc files.." find . -name '*.pyc' | xargs rm -f if [ -z $1 ]; then addons=$(ls -l | grep "^d" | gawk -F' ' '{print $9}') else addons=$1 fi for addonFile in $addons ; do dirname=$addonFile if [ ! -f $addonFile/addon.xml ] ; then #echo "$...
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.ta3.com rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.tv.sosac.ph rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
for addon in $(ls -l | grep "^d" | gawk -F' ' '{print $9}') ; do dirname=$addon if [ -f $addon/install.sh ] ; then cd $addon echo "$addon : ./install.sh" ./install.sh cd .. fi done
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.sledujuserialy.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.pohadkar.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#!/bin/bash # taken grom xbmc-czech-sf.net TOOLS=$(dirname "$0") BUILD_DIR=tmp PUBLISH_DIR=repo echo "Cleaning up *.pyc files.." find . -name '*.pyc' | xargs rm -f if [ -z $1 ]; then addons=$(ls -l | grep "^d" | gawk -F' ' '{print $9}') elif [ "$1" == "-n" ]; then echo "Determining which addons need to be releas...
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.rtvs.sk rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.mixer.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.barrandov.tv rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.jaksetodela.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.koukni.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/plugin.video.re-play.cz rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
#/bin/sh # do NOT use this script from XBMC addons directory, it is intented for development only DESTDIR=~/.xbmc/addons/script.module.stream.resolver rm -rf ${DESTDIR} mkdir -p ${DESTDIR} cp -a * ${DESTDIR}
Shell
echo " Stress testing piwik.php ======================== " ab -n5000 -c50 "http://localhost/dev/piwiktrunk/piwik.php?url=http%3A%2F%2Flocalhost%2Fdev%2Fpiwiktrunk%2F&action_name=&idsite=1&res=1280x1024&col=24&h=18&m=46&s=59&fla=1&dir=0&qt=1&realp=1&pdf=0&wma=1&java=1&cookie=1&title=&urlref="
Shell
libs/PhpDocumentor-1.3.2/phpdoc -c misc/phpdoc-config.ini
Shell
echo " Stress testing piwik.php ======================== " ab -n5000 -c50 "http://localhost/dev/piwiktrunk/piwik.php?url=http%3A%2F%2Flocalhost%2Fdev%2Fpiwiktrunk%2F&action_name=&idsite=1&res=1280x1024&col=24&h=18&m=46&s=59&fla=1&dir=0&qt=1&realp=1&pdf=0&wma=1&java=1&cookie=1&title=&urlref="
Shell
libs/PhpDocumentor-1.3.2/phpdoc -c misc/phpdoc-config.ini
Shell
#!/bin/bash # Copyright 2012 The Go Authors. All rights reserved. # Use of this source code is governed by a BSD-style # license that can be found in the LICENSE file. # Run this script in your app root directory, the one containing # the app.yaml file. Then point appcfg.py or dev_appserver.py # at './tmp' instead o...
Shell
#!/bin/bash set -e SRCS="main.go infer2.go conf.go qsort.go printf.go syntax.go write.go" HDRS=$(echo ~/g/go/include/link.h ~/g/go/src/pkg/runtime/stack.h ~/g/go/src/cmd/ld/textflag.h ~/g/go/src/cmd/?l/?.out.h) LINK=$(echo ~/g/go/src/liblink/{aaa.c,anames5.c,anames6.c,anames8.c,asm5.c,asm6.c,asm8.c,data.c,go.c,ld.c,li...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # POST-LOCK HOOK # # The post-lock hook is run after a path is locked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-lock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this repos...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-REVPROP-CHANGE HOOK # # The post-revprop-change hook is invoked after a revision property # has been added, modified or deleted. Subversion runs this hook by # invoking a program (script, executable, binary, etc.) named # 'post-revprop-change' (for which this file is a template), with the # f...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # START-COMMIT HOOK # # The start-commit hook is invoked before a Subversion txn is created # in the process of doing a commit. Subversion runs this hook # by invoking a program (script, executable, binary, etc.) named # 'start-commit' (for which this file is a template) # with the following ordered...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # PRE-LOCK HOOK # # The pre-lock hook is invoked before an exclusive lock is # created. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-lock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (the pat...
Shell
#!/bin/sh # PRE-UNLOCK HOOK # # The pre-unlock hook is invoked before an exclusive lock is # destroyed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-unlock' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH ...
Shell
#!/bin/sh # POST-COMMIT HOOK # # The post-commit hook is invoked after a commit. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-commit' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this rep...
Shell
#!/bin/sh # PRE-COMMIT HOOK # # The pre-commit hook is invoked before a Subversion txn is # committed. Subversion runs this hook by invoking a program # (script, executable, binary, etc.) named 'pre-commit' (for which # this file is a template), with the following ordered arguments: # # [1] REPOS-PATH (t...
Shell
#!/bin/sh # PRE-REVPROP-CHANGE HOOK # # The pre-revprop-change hook is invoked before a revision property # is added, modified or deleted. Subversion runs this hook by invoking # a program (script, executable, binary, etc.) named 'pre-revprop-change' # (for which this file is a template), with the following or...
Shell
#!/bin/sh # POST-UNLOCK HOOK # # The post-unlock hook runs after a path is unlocked. Subversion runs # this hook by invoking a program (script, executable, binary, etc.) # named 'post-unlock' (for which this file is a template) with the # following ordered arguments: # # [1] REPOS-PATH (the path to this...
Shell
#!/bin/bash mpstat $1 $2 -> $3
Shell
#!/bin/bash mpstat $1 $2 -> $3
Shell
#!/bin/bash echo my first script echo this is another message
Shell
#!/bin/bash grep processor /proc/cpuinfo | wc
Shell
#!/bin/bash grep processor /proc/cpuinfo | wc
Shell
#!/bin/bash echo my first script echo this is another message
Shell
#!/bin/bash if [ $1 = "cache" ]; then echo correct parameter $1 grep $1 /proc/cpuinfo elif [ $1 = "MHz" ]; then echo correct parameter $1 grep $1 /proc/cpuinfo else echo you did not use a correct parameter fi
Shell
#!/bin/bash if [ "$XBTLOADER" = "dunlodeme" ]; then exit fi export XBTLOADED=dunlodeme export XVAR=export xvarname export TOOL=call XConfCmd export XTOOL=call XConfTool :end
Shell
#!/bin/bash if [ "$XBTLOADER" = "dunlodeme" ]; then exit fi export XBTLOADED=dunlodeme export XVAR=export xvarname export TOOL=call XConfCmd export XTOOL=call XConfTool :end
Shell
#!/bin/bash TEMP_DIR=`mktemp -d` PLUGIN_NAME=plugin.audio.lbc_audioagain PLUGIN_VERSION=$1 PLUGIN_FILE=$PLUGIN_NAME-$PLUGIN_VERSION.zip BUILD_DIR=$TEMP_DIR/$PLUGIN_NAME mkdir $BUILD_DIR rsync --archive --verbose --exclude release.sh --exclude *.svn* . $BUILD_DIR cd $TEMP_DIR zip -rv $PLUGIN_FILE $PLUGIN_NAME c...
Shell
#!/bin/bash TEMP_DIR=`mktemp -d` PLUGIN_NAME=plugin.audio.lbc_audioagain PLUGIN_VERSION=$1 PLUGIN_FILE=$PLUGIN_NAME-$PLUGIN_VERSION.zip BUILD_DIR=$TEMP_DIR/$PLUGIN_NAME mkdir $BUILD_DIR rsync --archive --verbose --exclude release.sh --exclude *.svn* . $BUILD_DIR cd $TEMP_DIR zip -rv $PLUGIN_FILE $PLUGIN_NAME c...
Shell
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH project_name="xbash-lnmp 1.0"; # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install $project_name" exit 1 fi clear echo "==============...
Shell
#!/bin/bash PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH project_name="xbash-lnmp 1.0"; # Check if user is root if [ $(id -u) != "0" ]; then echo "Error: You must be root to run this script, please use root to install $project_name" exit 1 fi clear echo "==============...
Shell
#!/bin/sh # iplatency_agent.sh # get ip list from controller by ssh, and invoke iplatency to get latencies # Created by Razor <bg1tpt AT gmail.com> on 2008-03-17. # Copyright (c) 2008 xBayDNS Team. All rights reserved. PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin INSTAL...
Shell
#!/bin/sh # install_agent.sh # create xbaydns user and generate the ssh key. # Created by Razor <bg1tpt AT gmail.com> on 2008-03-24. # Copyright (c) 2008 xBayDNS Team. All rights reserved. USER="xbaydns" GROUP="xbaydns" UID=60190 GID=60190 OSTYPE="`uname`" KEYBITS=2048 INSTALLPATH="/data0/xbaydns" MASTER_PUB="ssh-rsa...
Shell
#!/bin/sh if [ $# != 2 ]; then echo "Usage: $0 <master_ip> <path_to_bind_chroot>" exit 1 fi MASTERIP=$1 BINDCHROOT=$2 #1.init sync&cron enviroment #=========================== #1.1 prepare restrictive shell - smrsh #------------------------------------- if [ -x /usr/sbin/smrsh ];then # CentOS SMRSH...
Shell
#!/bin/sh if [ $# != 2 ]; then echo "Usage: $0 <master_ip> <authzcode> " exit 1 fi MASTERIP=$1 AUTHZCODE=$2 #1. init user(xdagent) enviroment #=============================== rm -rf /home/xdagent userdel xdagent useradd xdagent -g named -s /sbin/nologin -d /home/xdagent mkdir -p /home/xdagent/{.ssh,prog,ipl...
Shell
#!/bin/sh xbaydns_path=`xdwherepkg`/xbaydnsweb echo $xbaydns_path cd $xbaydns_path source /home/xbaydns/xdenv python2.5 manage.py runserver 0.0.0.0:80
Shell
#!/bin/sh usage() { echo "Usage: $0 master <master_ip> <path_to_bind_chroot>" echo " $0 agent <master_ip> <authz_code>" echo " $0 slave <master_ip> <authz_code> <path_to_bind_chroot>" } if [ $# -lt 3 ]; then usage exit 1 else TYPE=$1 MASTERIP=$2 if [ $TYPE = "master"...
Shell
#!/bin/sh if [ $# != 2 ]; then echo "Usage: $0 <master_ip> <authzcode> " exit 1 fi MASTERIP=$1 AUTHZCODE=$2 #1. init user(xdagent) enviroment #=============================== rm -rf /home/xdagent userdel xdagent useradd xdagent -g named -s /sbin/nologin -d /home/xdagent mkdir -p /home/xdagent/{.ssh,prog,ipl...
Shell
#!/bin/sh xbaydns_path=`xdwherepkg`/xbaydnsweb echo $xbaydns_path cd $xbaydns_path source /home/xbaydns/xdenv python2.5 manage.py runserver 0.0.0.0:80
Shell
#!/bin/sh # iplatency_agent.sh # get ip list from controller by ssh, and invoke iplatency to get latencies # Created by Razor <bg1tpt AT gmail.com> on 2008-03-17. # Copyright (c) 2008 xBayDNS Team. All rights reserved. PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin INSTAL...
Shell
#!/bin/sh xbaydns_path=`xdwherepkg`/xbaydnsweb echo $xbaydns_path cd $xbaydns_path python conftoresults.py
Shell
#!/bin/sh # install_agent.sh # create xbaydns user and generate the ssh key. # Created by Razor <bg1tpt AT gmail.com> on 2008-03-24. # Copyright (c) 2008 xBayDNS Team. All rights reserved. USER="xbaydns" GROUP="xbaydns" UID=60190 GID=60190 OSTYPE="`uname`" KEYBITS=2048 INSTALLPATH="/data0/xbaydns" MASTER_PUB="ssh-rsa...
Shell
#!/bin/sh if [ $# != 2 ]; then echo "Usage: $0 <master_ip> <path_to_bind_chroot>" exit 1 fi MASTERIP=$1 BINDCHROOT=$2 #1.init sync&cron enviroment #=========================== #1.1 prepare restrictive shell - smrsh #------------------------------------- if [ -x /usr/sbin/smrsh ];then # CentOS SMRSH...
Shell
#!/bin/sh if [ $# != 3 ]; then echo "Usage: $0 <master_ip> <authzcode> <path_to_bind_chroot>" exit 1 fi MASTERIP=$1 AUTHZCODE=$2 BINDCHROOT=$3 #1. init user(xdslave) enviroment #=============================== rm -rf /home/xdslave userdel xdslave useradd xdslave -g named -s /sbin/nologin -d /home/xdslave r...
Shell
#!/bin/sh usage() { echo "Usage: $0 master <master_ip> <path_to_bind_chroot>" echo " $0 agent <master_ip> <authz_code>" echo " $0 slave <master_ip> <authz_code> <path_to_bind_chroot>" } if [ $# -lt 3 ]; then usage exit 1 else TYPE=$1 MASTERIP=$2 if [ $TYPE = "master"...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH/.. if [ ! -f crontab ]; then exit 0 fi crontab -u xdagent -l > old_crontab if ! diff crontab old_crontab > /dev/null 2>&1 ; then crontab -u xdagen...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` #HOST_IP=`ifconfig | grep inet | head -n1 | sed -e 's/:/ /' | awk '{print $3}'` AGENT_NAME=`cat $PPATH/../myname` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH rsync -avz -e 'ssh -i /home/xdagent...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH rsync -avz -e 'ssh -i /home/xdagent/rsync-key' \ xbaydns\@$MASTER_IP:/home/xbaydns/iplist ../iplist
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` #HOST_IP=`ifconfig | grep inet | head -n1 | sed -e 's/:/ /' | awk '{print $3}'` AGENT_NAME=`cat $PPATH/../myname` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH rsync -avz -e 'ssh -i /home/xdagent...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH rsync -avz -e 'ssh -i /home/xdagent/rsync-key' xbaydns\@$MASTER_IP:/home/xbaydns/agent/prog/* . rsync -avz -e 'ssh -i /home/xdagent/rsync-key' xbaydn...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH/.. if [ ! -f crontab ]; then exit 0 fi crontab -u xdagent -l > old_crontab if ! diff crontab old_crontab > /dev/null 2>&1 ; then crontab -u xdagen...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` #HOST_IP=`ifconfig | grep inet | head -n1 | sed -e 's/:/ /' | awk '{print $3}'` AGENT_NAME=`cat $PPATH/../myname` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH python iplatency.py ../iplist ../i...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH rsync -avz -e 'ssh -i /home/xdagent/rsync-key' \ xbaydns\@$MASTER_IP:/home/xbaydns/iplist ../iplist
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH rsync -avz -e 'ssh -i /home/xdagent/rsync-key' xbaydns\@$MASTER_IP:/home/xbaydns/agent/prog/* . rsync -avz -e 'ssh -i /home/xdagent/rsync-key' xbaydn...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` #HOST_IP=`ifconfig | grep inet | head -n1 | sed -e 's/:/ /' | awk '{print $3}'` AGENT_NAME=`cat $PPATH/../myname` if [ -f "$PPATH/../agent.conf" ]; then . $PPATH/../agent.conf fi cd $PPATH python iplatency.py ../iplist ../i...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PPATH=`dirname $0` if [ -f "$PPATH/../slave.conf" ]; then . $PPATH/../slave.conf . /home/xdslave/xdenv fi cd $PPATH/.. if ! diff /home/xdslave/named/etc/acl $XBAYDNS_CHROOT_PATH/etc/acl > /dev/null 2>&1; then rsync -avz ...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PPATH=`dirname $0` if [ -f "$PPATH/../slave.conf" ]; then . $PPATH/../slave.conf . /home/xdslave/xdenv fi cd $PPATH/.. rsync -avz -e 'ssh -i /home/xdslave/rsync-key' \ xbaydns\@$MASTER_IP:/home/xbaydns/slave/named/etc/acl /ho...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin PPATH=`dirname $0` #HOST_IP=`ifconfig | grep inet | head -n1 | sed -e 's/:/ /' | awk '{print $3}'` SLAVE_NAME=`cat $PPATH/../myname` if [ -f "$PPATH/../slave.conf" ]; then . $PPATH/../slave.conf . /home/xdslave/xdenv fi cd $PPATH/.. rsync -av...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PPATH=`dirname $0` if [ -f "$PPATH/../slave.conf" ]; then . $PPATH/../slave.conf . /home/xdslave/xdenv fi cd $PPATH/.. rsync -avz -e 'ssh -i /home/xdslave/rsync-key' \ xbaydns\@$MASTER_IP:/home/xbaydns/slave/named/etc/acl /ho...
Shell
#!/bin/sh export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin PPATH=`dirname $0` if [ -f "$PPATH/../slave.conf" ]; then . $PPATH/../slave.conf . /home/xdslave/xdenv fi cd $PPATH/.. if ! diff /home/xdslave/named/etc/acl $XBAYDNS_CHROOT_PATH/etc/acl > /dev/null 2>&1; then rsync -avz ...
Shell