code
stringlengths
1
1.96M
language
stringclasses
1 value
#! /bin/sh # vi:ts=4:et set -e echo "// Using GNU C compiler." echo "//" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. UNAME_MACHINE=unknown CC="gcc -fPIC" CC="gcc -static" CC="gcc" CFLAGS="-Wall -O2 -fomit-frame-pointer" # delete the next line to disable assembler support UNAME_MACHINE...
Shell
#! /bin/sh # vi:ts=4:et set -e echo "// Copyright (C) 1996-2014 Markus F.X.J. Oberhumer" echo "//" echo "// Generic Posix/Unix system" echo "// Generic C compiler" test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. test "X${AR}" = X && AR="ar" test "X${CC}" = X && CC="cc" test "X${CFLAGS+...
Shell
#! /bin/sh # vi:ts=4:et test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../.. LZO_CFG_FREESTANDING=1 . $top_srcdir/B/generic/build.sh
Shell
#! /bin/zsh set -o shwordsplit if [ "$ICSCROWDAPIKEY" != "" ] then echo "Generating new translation archives" fetch -q -1 -o - "http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY" fi echo "Fetch translation archive" fetch -q http://crowdin.net/download/project/ics-openvpn.zip # Chinese lang...
Shell
export O3=$PWD/openvpn3 mkdir -p src/ovpn3/java/net/openvpn/ovpn3 swig -outdir src/ovpn3/java/net/openvpn/ovpn3/ -c++ -java -package net.openvpn.ovpn3 -I$O3/client -I$O3 $O3/javacli/ovpncli.i
Shell
#!/bin/bash # Exit on errors set -e # Generate git config if the openvpn directory is checked out from git if [ -d openvpn/.git ]; then GIT=git cd openvpn CONFIGURE_GIT_CHFILES=$($GIT diff-files --name-status -r --ignore-submodules --quiet -- || echo "+") CONFIGURE_GIT_UNCOMMITTED=$($GIT diff-index --cached...
Shell
# adjust paths below and then run # . ./android-gcc-setup.sh # to setup build environment export NDK=/cygdrive/d/Code/android/android-ndk-r3 HOST_TYPE=windows ANDROID_VERSION=3 LIBDIR=$NDK/build/platforms/android-$ANDROID_VERSION/arch-arm/usr/lib export CFLAGS="-march=armv5te -mtune=xscale" export CC=$NDK/build/preb...
Shell
#!/bin/sh SCRIPTDIR=`dirname $0` . $SCRIPTDIR/android-gcc-setup.sh cd $SCRIPTDIR/.. if [ ! -d "deps" ] then mkdir -p deps fi cd deps DEPSDIR=$PWD JNIDIR=$DEPSDIR/../jni if [ ! -d "$JNIDIR/pdfview2/lib" ] then mkdir -p $JNIDIR/pdfview2/lib fi if [ ! -d "$JNIDIR/pdfview2/include" ] then mkdir -p $JNIDIR/pd...
Shell
#!/bin/bash # gen part types convertion function from PartitionTypes.txt file if [ $# -eq 1 ]; then partfile=$1 else partfile=PartitionTypes.txt fi awk '$1 ~ /[0-9a-fA-F]h/ { print $0 } ' $partfile
Shell
#!/bin/bash # gen part types convertion function from PartitionTypes.txt file if [ $# -eq 1 ]; then partfile=$1 else partfile=PartitionTypes.txt fi awk '$1 ~ /[0-9a-fA-F]h/ { print $0 } ' $partfile
Shell
#!/bin/sh # Runs pylint on all python files in codereview/ # # Skips over 'cpplint' which is a third part in the chromium branch. # ROOT=$(dirname $(readlink -f $0))/.. GAE=$ROOT/../google_appengine FILES=$(find codereview -iname "*.py" | grep -v "cpplint") IMPORTS=$GAE:$GAE/lib/django_1_2 PYTHONPATH=$IMPORTS:$PYTHONPA...
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#!/usr/bin/env bash # Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. # For licensing, see LICENSE.html or http://ckeditor.com/license # Use this file to quickly run the sample under Linux. adl application.xml ../../
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/sh # # Usage example: ./generate.sh int Int Integer" # Args are: primitive type, capitalized primitive type, wrapper type # # To make changes to the .java files in this package, # 1. run this script to generate the templates, move the .gen files # somewhere else # 2. modify the template with your intended cha...
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/sh /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
Shell
#!/bin/sh /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | grep -v ".gif" | grep -v ".jpg" | grep -v ".png" | grep -v ".t...
Shell
#!/bin/sh curl --silent --compressed http://example.com/cron.php
Shell
<?php // $Id: run-tests.sh,v 1.1.2.7 2009/10/19 01:49:41 boombatower Exp $ // Core: Id: run-tests.sh,v 1.35 2009/08/17 19:14:41 webchick Exp /** * @file * Backport of Drupal 7 run-tests.sh with modifications, see BACKPORT.txt. * This file must be placed in the Drupal scripts folder in order for it to * work proper...
Shell
#!/bin/bash # # This command expects to be run within the Open Atrium profile directory. To # generate a full distribution you must be in a git checkout. # # To use this command you must have `drush make` and `git` installed. # if [ -f openatrium.make ]; then echo -e "\nThis command can be used to run openatrium.mak...
Shell
#!/bin/bash # # This command expects to be run within the Open Atrium profile directory. To # generate a full distribution you must be in a git checkout. # # To use this command you must have `drush make` and `git` installed. # if [ -f openatrium.make ]; then echo -e "\nThis command can be used to run openatrium.mak...
Shell
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh # $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $ find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | gre...
Shell
#!/bin/sh # $Id: cron-lynx.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ /usr/bin/lynx -source http://example.com/cron.php > /dev/null 2>&1
Shell
#!/bin/sh # $Id: code-clean.sh,v 1.8 2005/08/11 13:02:08 dries Exp $ find . -name "*~" -type f | xargs rm -f find . -name ".#*" -type f | xargs rm -f find . -name "*.rej" -type f | xargs rm -f find . -name "*.orig" -type f | xargs rm -f find . -name "DEADJOE" -type f | xargs rm -f find . -type f | grep -v ".psp" | gre...
Shell
#!/bin/sh # $Id: cron-curl.sh,v 1.3 2006/08/22 07:38:24 dries Exp $ curl --silent --compressed http://example.com/cron.php
Shell
#!/bin/sh # # Usage example: ./generate.sh int Int Integer" # Args are: primitive type, capitalized primitive type, wrapper type # # To make changes to the .java files in this package, # 1. run this script to generate the templates, move the .gen files # somewhere else # 2. modify the template with your intended cha...
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/sh # Pack an installable package # USAGE: build_release <version> echo echo "Packing for $1" sudo rm -Rf build rm *.tar.gz *.zip rm -Rf ../yotsuba hg export ./ ../yotsuba cd ../ cd yotsuba rm -Rf build doc test* *.kpf archive_doc ls -lh cd ../ tar -czvf yotsuba-$1.tar.gz yotsuba rm -Rf yotsuba echo
Shell
#!/bin/sh # This is the script I use on my server to publish the spec. It's not really # useful for anyone else, I just want it in version control somewhere. set -ex cd ~/git/editing git fetch git push github cd ~/webroot/tmp/editing git fetch --all cd /tmp hg clone ~/webroot/tmp/editing hg-editing.$$ cd hg-editing.$$...
Shell
#!/bin/bash set -ex cd data hg pull hg up cd .. ./preprocess anolis --output-encoding=ascii --omit-optional-tags --enable=xspecxref \ --w3c-compat-xref-a-placement --use-strict intermediate.html editing.html rm intermediate.html sed -i 's!<span class=secno>[^<]*</span>!!g' editing.html
Shell
#!/bin/bash # Currently I cross-check data generation in Gecko and WebKit, then populate # using the WebKit copy because it has fewer bugs to fix. This fixes the bugs # for me. Must be run from the root of the spec repo. set -e cd conformancetest fromdos webkit-data fromdos gecko-data # Take a diff, ignoring the firs...
Shell
#!/bin/bash # run solr commit command so recent updates can be searched # takes solr server name as argument curl http://$1/solr/update -F stream.file=`pwd`/commit.xml
Shell
#!/bin/bash # upload a directory of files to Solr # takes two arguments: serverName and directory # you must run commit after ingest FILES=$2/*.xml for f in $FILES do echo "Processing `pwd`/$f file..." curl http://$1/solr/update -F stream.file=`pwd`/$f done
Shell
#!/bin/bash # deletes all data from Solr repository # takes solr server name as argument # you must run commit after delete curl http://$1/solr/update -F stream.file=`pwd`/deleteAll.xml
Shell
#!/bin/bash # run solr commit command so recent updates can be searched # takes solr server name as argument curl http://$1/solr/update -F stream.file=`pwd`/optimize.xml
Shell
#! /bin/bash # Binary of the Texturepacker: TEXTUREPACKER_BINARY=/usr/local/bin/TexturePacker # Shared Spritesheet-Output-Definitions: SPRITESHEET_OUTPUT_DIRECTORY="../assets/gfx/spritesheets/" SPRITESHEET_OUTPUT_JAVAIDS_PACKAGE="org.anddev.andengine.examples.spritesheets" SPRITESHEET_OUTPUT_JAVAIDS_DIRECTORY="../src...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#!/bin/sh # # Usage example: ./generate.sh int Int Integer" # Args are: primitive type, capitalized primitive type, wrapper type # # To make changes to the .java files in this package, # 1. run this script to generate the templates, move the .gen files # somewhere else # 2. modify the template with your intended cha...
Shell
#!/bin/bash # # This script checks the java version and bails if it's less # than Java6 (because we use @Override annotations on interface # overriding methods. It then proceeds to do a maven build that # first cleans, then builds the normal lifecycle through compilation # unit testing (if available) up to packaging. ...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi ./kill_process.sh $ADB shell rm -r /data/data/com.google.android.apps.iosched/*
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am force-stop com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell "echo '$*' | sqlite3 -header -column /data/data/com.google.android.apps.iosched/databases/schedule.db"
Shell
#!/bin/sh # Sessions list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/sessions # Vendors list #adb shell am start -a android.intent.action.VIEW -d content://com.google.android.apps.iosched/tracks/android/vendors # Session detail #adb shell am start -a...
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi MAC_UNAME="Darwin" if [[ "`uname`" == ${MAC_UNAME} ]]; then DATE_FORMAT="%Y-%m-%dT%H:%M:%S" else DATE_FORMAT="%Y-%m-%d %H:%M:%S" fi if [ -z "$1" ]; then NOW_DATE=$(date "+${DATE_FORMAT}") echo Please provide a mock time in the format \"${NOW_DATE}\" or \"d\" to del...
Shell
#!/bin/sh adb shell cat /data/data/com.google.android.apps.iosched/shared_prefs/com.google.android.apps.iosched_preferences.xml | xmllint --format -
Shell
#!/bin/sh # Remember VERBOSE only works on debug builds of the app adb shell setprop log.tag.iosched_SyncHelper VERBOSE adb shell setprop log.tag.iosched_SessionsHandler VERBOSE adb shell setprop log.tag.iosched_ImageCache VERBOSE adb shell setprop log.tag.iosched_ImageWorker VERBOSE adb shell setprop log.tag.iosched_I...
Shell
#!/bin/sh adb shell pm clear com.google.android.apps.iosched
Shell
#!/bin/sh if [[ -z $ADB ]]; then ADB=adb; fi $ADB shell am start \ -a android.intent.action.MAIN \ -c android.intent.category.LAUNCHER \ -n com.google.android.apps.iosched/.ui.HomeActivity
Shell
#/bin/sh python usbmuxd-python-client/tcprelay.py -t 22:2222 1999:1999
Shell
#!/bin/sh if [ -a /dev/disk0s1s2 ]; then # test for iOS 5 data partition mount_hfs /dev/disk0s1s1 /mnt1 2>/dev/null mount_hfs /dev/disk0s1s2 /mnt2 2>/dev/null elif [ -a /dev/disk0s2s1 ]; then # test for iOS 4 data partition mount_hfs /dev/disk0s1 /mnt1 2>/dev/null mount_hfs /dev/disk0s2s1 /mnt2 2>/dev...
Shell
#!/bin/sh cat /dev/rdisk0s2s1 | netcat -l -p 1234
Shell
#!/bin/bash set +e set -o errexit if [ $# -ne 4 ] then echo "Syntax: $0 IPSW RAMDISK KEY IV" echo "python_scripts/kernel_patcher.py can generate a shell script with the correct parameters" exit fi IPSW=$1 RAMDISK=$2 KEY=$3 IV=$4 CUSTOMRAMDISK="myramdisk.dmg" IMG3FS="./img3fs/img3fs" IMG3MNT="/tmp/img3" ...
Shell
#!/bin/sh SSHOPTS="-p 2222 -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null" UDID=`ssh $SSHOPTS root@localhost "./device_infos udid"` if [ "$UDID" == "" ]; then exit fi echo "Device UDID : $UDID" mkdir -p $UDID DATE=`date +"%Y%m%d-%H%M"` OUT=$UDID/data_$DATE.dmg echo "Dumping data partition in $OUT ....
Shell
#!/bin/bash echo "Generating ORMlite resources" java -classpath lib/ormlite-core-4.31.jar:lib/ormlite-android-4.31.jar:bin/res:bin/classes com.j256.ormlite.android.apptools.OrmLiteConfigUtil ormlite_config.txt echo "done."
Shell
#!/bin/sh cd ./ case "$1" in start) ./main.py -worker=20 -logging=error -log_file_prefix=./Logs/test.log & ;; stop) ps aux | grep "python ./main.py" | awk '{print $2}' | xargs kill -9 ;; restart) echo 'exec stop then start' ;; *) echo 'Usage: start stop restart' esac
Shell
#!/bin/sh cd ./ case "$1" in start) ./main.py -worker=20 -logging=error -log_file_prefix=./Logs/test.log & ;; stop) ps aux | grep "python ./main.py" | awk '{print $2}' | xargs kill -9 ;; restart) echo 'exec stop then start' ;; *) echo 'Usage: start stop restart' esac
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@iPad Statis@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` while [ $secdate1 -le $secdate2 ] do date1=`date -d @$secdate1 +%Y%m%d` echo $date1 /usr/local/bin/python /v5/logs/iPad/iPadPvUvVv.py /v3/LogTrees/ $date1 /v5/l...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@iPad Statis@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` while [ $secdate1 -le $secdate2 ] do date1=`date -d @$secdate1 +%Y%m%d` echo $date1 /usr/local/bin/python /v5/logs/iPad/iPadPvUvVv.py /v3/LogTrees/ $date1 /v5/l...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@Log to File Tree@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` dirtmp=$3 destdir=$4 echo $dirtmp echo $destdir function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: log so...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@Log to File Tree@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` dirtmp=$3 destdir=$4 echo $dirtmp echo $destdir function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: log so...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@Tmp Cron tab File tar sh@@@@@@@@@@@@@@@@@@@@@@@@@' opdate='20111227' sh /v5/logs/20111230/File_tar.sh $opdate $opdate /v4/tmplogs /v6/LogTrees/ sh /v5/logs/20111230/Stat_tree_client.sh $opdate $opdate /v6/LogTrees/ /v5/logs/LogTree/Log/
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@Tmp Log to File Tree@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` dirtmp=$3 destdir=$4 echo $dirtmp echo $destdir function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: log sour...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@Tmp Log to File Tree@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` dirtmp=$3 destdir=$4 echo $dirtmp echo $destdir function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: log sour...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@Tmp Cron tab File tar sh@@@@@@@@@@@@@@@@@@@@@@@@@' opdate='20111227' sh /v5/logs/20111230/File_tar.sh $opdate $opdate /v4/tmplogs /v6/LogTrees/ sh /v5/logs/20111230/Stat_tree_client.sh $opdate $opdate /v6/LogTrees/ /v5/logs/LogTree/Log/
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@Tmp Log to File Tree@@@@@@@@@@@@@@@@@@@@@@@@@' function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: log tree directory." echo "Parameter4: log dir" echo "Example:" echo " sh Stat_tree_android.sh 20111001 20111002 /v3/LogTree...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@Tmp Log to File Tree@@@@@@@@@@@@@@@@@@@@@@@@@' function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: log tree directory." echo "Parameter4: log dir" echo "Example:" echo " sh Stat_tree_android.sh 20111001 20111002 /v3/LogTree...
Shell
#!/bin/bash date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` destdir='/v4/tmplogs/' while [ $secdate1 -le $secdate2 ] do #tar -zxf /v1/backuplogs/25/access_log.$date1.tar.gz -C $dirtmp/25/ #tar -zxf /v1/backuplogs/32/access_log.$date1.tar.gz -C $dirtmp/32/ #tar -zxf /v1/backu...
Shell
#!/bin/bash date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` destdir='/v4/tmplogs/' while [ $secdate1 -le $secdate2 ] do #tar -zxf /v1/backuplogs/25/access_log.$date1.tar.gz -C $dirtmp/25/ #tar -zxf /v1/backuplogs/32/access_log.$date1.tar.gz -C $dirtmp/32/ #tar -zxf /v1/backu...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@RESTATIS@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` while [ $secdate1 -le $secdate2 ] do date1=`date -d @$secdate1 +%Y%m%d` echo $date1 sh /v5/logs/LogTree/File_tar.sh $opdate $opdate /v4/tmplogs /v3/LogTrees/ sh /...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@RESTATIS@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` while [ $secdate1 -le $secdate2 ] do date1=`date -d @$secdate1 +%Y%m%d` echo $date1 sh /v5/logs/LogTree/File_tar.sh $opdate $opdate /v4/tmplogs /v3/LogTrees/ sh /...
Shell
#!/bin/bash num=0 while read brand do num=$((num+1)) echo $num #echo $brand file=$(ls) for grocery in $file do #echo $grocery a=`awk -F "\\^_\\^" '$7 ~/'"$brand"'/' "$grocery"` #echo $a if [ "$a" = "" ] then echo 'null' $grocery ' ' $brand else sed -i ''"$num"'s/$/, '"$grocery"'/' Sony...
Shell
#!/bin/bash date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` while [ $secdate1 -le $secdate2 ] do date1=`date -d @$secdate1 +%Y%m%d` echo $date1 day1=`date -d @$secdate1 +%Y/%m/%d` echo $day1 secdate1=$(($secdate1 + 86400)) cd /v2/LogTrees/init-statis/$day1 pwd more nopi...
Shell
#!/bin/bash date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` while [ $secdate1 -le $secdate2 ] do date1=`date -d @$secdate1 +%Y%m%d` echo $date1 day1=`date -d @$secdate1 +%Y/%m/%d` echo $day1 secdate1=$(($secdate1 + 86400)) cd /v2/LogTrees/init-statis/$day1 pwd more nopi...
Shell
#!/bin/bash num=0 while read brand do num=$((num+1)) echo $num #echo $brand file=$(ls) for grocery in $file do #echo $grocery a=`awk -F "\\^_\\^" '$7 ~/'"$brand"'/' "$grocery"` #echo $a if [ "$a" = "" ] then echo 'null' $grocery ' ' $brand else sed -i ''"$num"'s/$/, '"$grocery"'/' Sony...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@Dwonload pv@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` dir=$3 destfile=$4 echo $dir function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: source log directory." ech...
Shell
#!/bin/sh echo '@@@@@@@@@@@@@@@@@@@@Dwonload pv@@@@@@@@@@@@@@@@@@@@@@@@@@@' date1=$1 date2=$2 secdate1=`date -d $date1 +%s` secdate2=`date -d $date2 +%s` dir=$3 destfile=$4 echo $dir function help(){ echo "Parameter1: start time." echo "Parameter2: end time." echo "Parameter3: source log directory." ech...
Shell
#!/bin/bash num=0 while read brand do num=$((num+1)) echo $num #echo $brand file=$(ls) for grocery in $file do #echo $grocery a=`awk -F "\\^_\\^" '$7 ~/'"$brand"'/' "$grocery"` #echo $a if [ "$a" = "" ] then echo 'null' $grocery ' ' $brand else sed -i ''"$num"'s/$/, '"$grocery"'/' Sony...
Shell
#!/bin/bash num=0 while read brand do num=$((num+1)) echo $num #echo $brand file=$(ls) for grocery in $file do #echo $grocery a=`awk -F "\\^_\\^" '$7 ~/'"$brand"'/' "$grocery"` #echo $a if [ "$a" = "" ] then echo 'null' $grocery ' ' $brand else sed -i ''"$num"'s/$/, '"$grocery"'/' Sony...
Shell
#!/bin/sh cd ./ case "$1" in start) ./main.py -worker=20 -logging=error -log_file_prefix=./Logs/test.log & ;; stop) ps aux | grep "python ./main.py" | awk '{print $2}' | xargs kill -9 ;; restart) echo 'exec stop then start' ;; *) echo 'Usage: start stop restart' esac
Shell
#!/bin/sh cd ./ case "$1" in start) ./main.py -worker=20 -logging=error -log_file_prefix=./Logs/test.log & ;; stop) ps aux | grep "python ./main.py" | awk '{print $2}' | xargs kill -9 ;; restart) echo 'exec stop then start' ;; *) echo 'Usage: start stop restart' esac
Shell
#!/bin/bash DB_BACK_PATH="/opt/data/dbbak" mysqldump -h 10.103.13.14 -uapi -pyouku mobile_production s_os > $DB_BACK_PATH/s_os.sql mysqldump -h 10.103.13.14 -uapi -pyouku mobile_production s_factory > $DB_BACK_PATH/s_factory.sql mysqldump -h 10.103.13.14 -uapi -pyouku mobile_production s_partner_new > $DB_BACK_PATH/s_...
Shell
#!/bin/sh cd /opt/wanalytics/scripts/ PWD=`pwd` SCRIPTS=`dirname $PWD`/scripts logname=`date +%Y%m%d` if [ ! -n "$1" ]; then logname=`python -u $SCRIPTS/Yesterday.py` else logname=$1 fi datelog=`date +%Y%m%d%H%M%S` log="/opt/wanalytics/scripts/log/SplitLocalLog_${logname}_${datelog}.log" if [ ! -d "/opt/w...
Shell
#!/bin/sh # statis日志中,initial接口参数去重,mysql中计算guid,导入mongoDB中 if [ ! -n "$1" ]; then cat<<HELP Usage: ./statis_day_total_import.sh date Example: ./statis_day_total_import.sh 20120113 HELP exit 1 fi PWD="/opt/wanalytics/scripts" TOOLS=`dirname $PWD`/Tools date_start=`date "+%s"` mysql -h 10.103.13.103 -uroot ...
Shell
#!/bin/bash #统计分析统一调度执行脚本:dispatch.sh ############################################ #################调度执行顺序############### ##1、获取原始日志 ##2、按小时切分 ##3、对切分后的日志,进行散列处理并存储 ##4、GUID分析处理脚本,写入mongodb ##5、UPDATE LASTTIME脚本,更新LASTTIME ##6、每日使用设备数(UV)分析脚本 ##7、每日新增设备数(NV)分析脚本 ##8、累计使用设备数(AV)分析脚本 ##9、每日播放总量(VV)分析脚本 ##10、注册成功用户数(PAIKE...
Shell
#!/bin/sh if [ ! -d "/opt/temp/" ]; then mkdir -p /opt/temp/ fi cd /opt/temp/ /opt/wanalytics/scripts/SplitLocalLog.sh 20111113 /opt/wanalytics/scripts/SplitLocalLog.sh 20111114 /opt/wanalytics/scripts/SplitLocalLog.sh 20111115 /opt/wanalytics/scripts/SplitLocalLog.sh 20111116 /opt/wanalytics/scripts/SplitLoca...
Shell
#!/bin/bash DB_BACK_PATH="/opt/data/dbbak" mysqldump -h 10.103.13.14 -uapi -pyouku mobile_production s_os > $DB_BACK_PATH/s_os.sql mysqldump -h 10.103.13.14 -uapi -pyouku mobile_production s_factory > $DB_BACK_PATH/s_factory.sql mysqldump -h 10.103.13.14 -uapi -pyouku mobile_production s_partner_new > $DB_BACK_PATH/s_...
Shell