code stringlengths 1 1.96M | language stringclasses 1
value |
|---|---|
#!/bin/bash
# picking up data respectively for request and db.
awk -F, '
BEGIN {
OFS=","
pick_req=0
}
{
if (pick_req == 1){
print >> "req.csv"
pick_req = 0
}else{
print >> "db.csv"
pick_req = 1
}
} ' $1
| Shell |
#!/bin/bash
# $0 <csv>
# e.g.
# alexy@x200:~/wlan-pos$ ./tool/hide_coords dat/fpp_rawdata/moto/fpp_rawdata_moto_20101015.csv > tmp1.csv
# 16col
#awk -F, 'BEGIN{OFS=","}{$12="";$13="";$14="";print}' $1
# 14col
awk -F, 'BEGIN{OFS=","}{$9="";$10="";$11="";print}' $1
| Shell |
#!/bin/bash
req_packs=\
"\
ConcurrentLogHandler==0.8.4
SQLAlchemy==0.7.1
gunicorn==0.12.2
lxml==2.3
meinheld==0.4.13
netifaces==0.4
numpy==1.6.0
progressbar==2.3
psycopg2==2.4.2
simplejson==1.9.2\
"
num_packs=`echo $req_packs |awk -F== '{print NF}'`
num_packs=$(($num_packs - 1))
echo "-------[$num_packs] packages:---... | Shell |
#!/bin/bash
opt=$1
target_files=~/tmp/log/wpp.log*
#day_str="2 days ago"
day_str="now"
#mon_str="1 month ago"
mon_str="now"
day_end=`date -d "$day_str" "+%d"`
if [ "$opt" == "today" ]; then
#just for today.
day_start=$day_end
date_today=`date +%Y-%m-%d`
target_files=`ls $target_files -tr --full-time |grep ... | Shell |
#!/bin/bash
# picking up test cases(lines) from reqreterr($1) which have different pos/err results between cpp/python.
awk -F, '
BEGIN {
OFS=","
}
{
ep_cpp_py = $15; ee_cpp_py = $16
if (ep_cpp_py > 10 || ee_cpp_py > 10){
print
#print $1,$2,ep_cpp_py
}
} ' $1 |grep -v 'NaN'
| Shell |
#!/bin/bash
max_interv=4
while true
do
python yc.py
#delay=$[ $RANDOM%$max_interv ]
#echo $delay
#sleep $delay
done
| Shell |
#!/bin/bash
csvfile=$1
awk -F, '
{
if($9!="" && $10!="" && $12!="" && $13!=""){
print $9","$10","$12","$13
}
}' $csvfile |sed '/^$/d' |uniq > cells_latlon.csv
| Shell |
#!/bin/bash
# $0 <source html>
grep 'nbsp;' $1 |grep '<br>' |sed 's/<br>/\n/g' |sed 's/span class="content">/\n/g' |grep -v content |grep -v span |sed 's/ //g' |sed 's/ /,/g' > area_code_name_cn.csv
| Shell |
#!/bin/bash
# connect remote bluetooth serial port device.
bt_dev_name=yxt-e71
btinit=/etc/init.d/bluetooth
btkeyword=bluetooth
btcomportid=0
btcomport=rfcomm$btcomportid
btcomdev=/dev/$btcomport
if [ "`which pskill`" = "" ]; then
haspskill=0
btprocess=`ps aux|grep $btkeyword |grep -v 'grep' |awk '{print $N... | Shell |
#!/bin/bash
# MUST be executed at WPP root dir.
logdir_gunicorn=wpp/web/log
logfile_gunicorn=`ls -tr ${logdir_gunicorn}/gunicorn_* |tail -1`
numErr=`grep '\[ERROR\]' ${logfile_gunicorn} |wc -l`
echo "Found $numErr ERROR(s) in ${logfile_gunicorn}"
[ $numErr -eq 0 ] && exit 0
echo -n "Press any key other than *n* to ... | Shell |
#!/bin/bash
# $0 <moto bad csv>
# moto sometime has only 13 col with height info omitted.
# e.g.
# alexy@x200:~/wlan-pos$ ./tool/correct_motodata dat/fpp_rawdata/moto/fpp_rawdata_moto_20101015.csv > tmp1.csv
awk -F, 'BEGIN{OFS=","}{if(NF==13) $10=$10",";print}' $1
| Shell |
#!/bin/bash
# colorizing wpp tail -f log.
# Usage: $0 <logfile>
if [ $# = 1 ]; then
WPP_LOG=$1
OPT_TYPE=OFFLINE
else
WPP_LOG=~/tmp/log/wpp.log
OPT_TYPE=ONLINE
fi
WPP_ROOT=~/wpp
WPP_COLORIZE=$WPP_ROOT/wpp/util/colorize
OPT_ERRINFO=-u18:ERROR
OPT_POSERR=+l71:ErrCode=\\\"102\\\"
OPT_UA=+l34:UserAgent... | Shell |
#!/bin/bash
# update soft links for req/ret.csv.
[ "$1" = "" ] && ( echo -e "\nType: $0 <tagname>\n"; exit 99 )
tag=$1
path="$PWD/dat/fpp_rawdata/cmri"
reqlnk=$path/req.csv
retlnk=$path/ret.csv
reqnew=$path/req_$tag.csv
retnew=$path/ret_$tag.csv
echo "removing old links..."
echo $reqlnk
echo $retlnk
rm $reqlnk $retln... | Shell |
#!/bin/bash
#usage: test basic cases in config.py for online algos.
VER=0.1
Version ()
{
cat <<VER
GNU `basename $0` version $VER, by Yan Xiaotian
Built on i686-ubuntu-linux-gnu
Copyright (C) `date +%Y` Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warran... | Shell |
#!/bin/bash
# blog deploy.
server_ip=192.168.109.58
remote_dir=/usr/local/nginx/html/blog
sphinx_book_dir=/home/alexy/downloads/site/writing_a_book_with_sphinx
remote_dir_sphinxbook=$remote_dir/sphinx_book
#read -s -p "Enter $server_ip password: " inputline
#pwd_remote="$inputline"
pwd_remote="password"
echo
echo -n... | Shell |
#!/bin/bash
# script for gunicorn control.
# $0 [options]
PATH_WPPWEB=`dirname $0`
LOGDIR=log
LOGPATH=$PATH_WPPWEB/$LOGDIR
[ -d $LOGPATH ] || mkdir -p $LOGPATH
WPPLOGFILE=wpp.log
WPP_LOG=/dev/null
#WPP_LOG=$LOGDIR/$WPPLOGFILE
PFILE=/tmp/gunicorn.pid
GU=gunicorn
W_MH="egg:meinheld#gunicorn_worker"
W_GE="egg:gunicorn#... | Shell |
#!/bin/sh
svn checkout https://wlxy-liveclass.googlecode.com/svn/trunk/
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn commit -m "结构创建" *
# stty raw
read char
# stty cooked
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn add *
# stty raw
read char
# stty cooked
exit 0
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn add *
stty raw
read char
stty cooked
exit 0
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
svn checkout https://wlxy-liveclass.googlecode.com/svn/trunk/backend
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn commit -m "结构创建" *
stty raw
read char
stty cooked
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
svn checkout https://wlxy-liveclass.googlecode.com/svn/trunk/
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn commit -m "结构创建" *
# stty raw
read char
# stty cooked
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn commit -m "结构创建" *
stty raw
read char
stty cooked
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
src="dev.dot"
echo ${src}
dot -Kdot ${src} -Tpng -o dev.png
| Shell |
#!/bin/sh
src="dev.dot"
echo ${src}
dot -Kdot ${src} -Tpng -o dev.png
| Shell |
#!/bin/sh
sudo svn add *
stty raw
read char
stty cooked
exit 0
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
sudo svn add *
# stty raw
read char
# stty cooked
exit 0
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
svn checkout https://wlxy-liveclass.googlecode.com/svn/trunk/backend
# Hz6Xx4Ds8ft4
| Shell |
#!/bin/sh
set -e -u
here=$(basename "$0")
cd "$here/.."
target=doc/todo.perlcritic
if perlcritic --verbose '%p\n' mbank-cli | sort | uniq -c > "${target}.new"
then
:
else
rc=$?
[ $rc -eq 2 ] || exit $rc
fi
diff -u "${target}" "${target}.new" || true
mv "${target}.new" "${target}"
# vim:ts=4 sw=4 et
| Shell |
#!/bin/sh
if [ $# -ge 2 ]
then
printf '%s [revision]\n' "$0" >&2
exit 1
fi
set -e -x
pwd="$PWD"
name=mbank-cli
revision="${1:-tip}"
version=$(hg log -r "$revision" --template='{date|isodate}' | head -c 10 | tr -d -)
sourceroot=$(mktemp -d -t "$name-source-XXXXXX")
export TAR_OPTIONS="--owner root --group root --mod... | Shell |
#!/bin/sh
# FFDec requires Oracle Java 7
# Look for java in these directories
LOOKUP_JRE_DIRS="/usr/lib/jvm/* /opt/java* /opt/jre*"
#Created by Petris 2009 -> Many thanks!
# Required version
REQ_JVER1=1
REQ_JVER2=7
REQ_JVER3=0
REQ_JVER4=0
JAR_FILE=ffdec.jar
MEMORY=1024m
check_java_version () {
JVER1=`echo $JAVA_VERSI... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
RED="0.5 0.5 0.5 0 0 0 0 0 0"
GREEN="0 0 0 0.5 0.5 0.5 0 0 0"
for x in btn_zoom_down_disabled.9 btn_zoom_down_disabled_focused.9 btn_zoom_down_normal.9 btn_zoom_up_disabled.9 btn_zoom_up_disabled_focused.9 btn_zoom_up_normal.9 btn_zoom_width_normal ; do
conv... | Shell |
#!/bin/sh
SCRIPTDIR=`dirname $0`
cd $SCRIPTDIR/..
for x in upfolder folder home recent1 recent2 recent3 recent4 recent5 ; do
convert res/drawable-hdpi/$x.png -resize 66.7% res/drawable-mdpi/$x.png
convert res/drawable-hdpi/$x.png -resize 50% res/drawable-ldpi/$x.png
done
| Shell |
#!/bin/sh
# make sure ndk-build is in path
SCRIPTDIR=`dirname $0`
MUPDF_FILE=mupdf-snapshot-20111207.tar.gz
MUPDF=mupdf
#MUPDF_FILE=mupdf-0.9-source.tar.gz
#MUPDF=mupdf-0.9
FREETYPE=freetype-2.4.6
OPENJPEG=openjpeg_v1_4_sources_r697
JBIG2DEC=jbig2dec-0.11
JPEGSRC=jpegsrc.v8a.tar.gz
JPEGDIR=jpeg-8a
cd $SCRIPTDIR/../de... | Shell |
#! /bin/bash
#
# chkconfig: 2345 9 91
# description: start and stop WMR - Weather Logger for (c) Oregon Scientific USB protocol
# support all USB oregon device (WMR100/200/WMRS200/I300/I600/RMS600 ..)
#
WMRBIN="/usr/bin/wmr-oregon"
WMRCNF="/etc/wmr/wmr.conf"
WMRLCK="/var/lock/subsys/wmr-oregon"
#
#
PATH=/bin:/sbin:/... | Shell |
#! /bin/bash
#
# chkconfig: 2345 9 91
# description: start and stop WMR - Weather Logger for (c) Oregon Scientific USB protocol
# support all USB oregon device (WMR100/200/WMRS200/I300/I600/RMS600 ..)
#
WMRBIN="/usr/bin/wmr-oregon"
WMRCNF="/etc/wmr/wmr.conf"
WMRLCK="/var/lock/subsys/wmr-oregon"
#
#
PATH=/bin:/sbin:/... | Shell |
#! /bin/bash
#
# chkconfig: 2345 9 91
# description: start and stop WMR - Weather Logger for (c) Oregon Scientific USB protocol
# support all USB oregon device (WMR100/200/WMRS200/I300/I600/RMS600 ..)
#
START=60
WMRBIN="/usr/bin/wmr-oregon"
WMRCNF="/etc/wmr/wmr.conf"
WMRLCK="/var/lock/wmr-oregon"
#
#
PATH=/bin:/sbi... | Shell |
#! /bin/bash
#
# chkconfig: 2345 9 91
# description: start and stop WMR - Weather Logger for (c) Oregon Scientific USB protocol
# support all USB oregon device (WMR100/200/WMRS200/I300/I600/RMS600 ..)
#
START=60
WMRBIN="/usr/bin/wmr-oregon"
WMRCNF="/etc/wmr/wmr.conf"
WMRLCK="/var/lock/wmr-oregon"
#
#
PATH=/bin:/sbi... | Shell |
#!/bin/sh
# Create Database and table SQLITE3 for Weather SQL Logger
rm -f weather.db
sqlite3 weather.db < ../contrib/wmr.sql
mkdir -p /var/weather
mv -f /var/weather/weather.db /var/weather/weather.db.`date '+%d%m%Y%H%M%S'`
cp -f weather.db /var/weather/weather.db
mv -f weather.db /var/weather/weather.db.TMPL
| Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_wind - Plugin to monitor WMR weather wind sensors WGR800 or other...
wmr_wind
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the plugin in the /etc/... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_humidity - Plugin to monitor WMR Oregon weather temperature / humidity
sensors THGN801, THGR810 or other...
wmr_humidity
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_uv - Plugin to monitor WMR weather UV sensors UVN800
wmr_uv
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the plugin in the /etc/munin/plugins/ dire... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_temp - Plugin to monitor WMR weather temperature / humidity
sensors THGN801, THGR810 or other...
wmr_temp
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAG... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_humidity_X - Plugin to monitor WMR Oregon weather temperature / humidity
sensors THGN801, THGR810 or other. X - number of sensor.
wmr_humidity_X
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to u... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_humidity - Plugin to monitor WMR Oregon weather temperature / humidity
sensors THGN801, THGR810 or other...
wmr_humidity
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_temp - Plugin to monitor WMR weather temperature / humidity
sensors THGN801, THGR810 or other...
wmr_temp
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAG... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_temp_X - Plugin to monitor WMR weather temperature / humidity
sensors THGN801,THGR810 or other. X - number of sensor.
wmr_temp_X
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/w... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_wind - Plugin to monitor WMR weather wind sensors WGR800 or other...
wmr_wind
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the plugin in the /etc/... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_pressure - Plugin to monitor WMR Oregon weather pressure sensor
in main unit
wmr_pressure
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the p... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_rain - Plugin to monitor WMR Oregon weather rain sensors
PCR800,RGR126 or other...
wmr_rain
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the p... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_uv - Plugin to monitor WMR weather UV sensors UVN800
wmr_uv
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the plugin in the /etc/munin/plugins/ dire... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_water - Plugin to monitor WMR weather water temperature sensors THWR288
wmr_water
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the plugin in the /e... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_temp_X - Plugin to monitor WMR weather temperature / humidity
sensors THGN801,THGR810 or other. X - number of sensor.
wmr_temp_X
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/w... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_humidity_X - Plugin to monitor WMR Oregon weather temperature / humidity
sensors THGN801, THGR810 or other. X - number of sensor.
wmr_humidity_X
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to u... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_water - Plugin to monitor WMR weather water temperature sensors THWR288
wmr_water
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the plugin in the /e... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_rain - Plugin to monitor WMR Oregon weather rain sensors
PCR800,RGR126 or other...
wmr_rain
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the p... | Shell |
#!/bin/sh
#
: << =cut
=head1 NAME
wmr_pressure - Plugin to monitor WMR Oregon weather pressure sensor
in main unit
wmr_pressure
=head1 CONFIGURATION
The following enviroment variables are used by this plugin:
wmrconf - full path to config file to use. (Default /etc/wmr/wmr.conf)
=head1 USAGE
Place the p... | Shell |
#!/bin/sh
if [ "$1" == "" ]
then
echo "Logrotate data file for wmr-oregon weather logger"
echo "(c) 2012 Den68 <idg68@yandex.ru>"
echo "Global download URL: http://code.google.com/p/wmr/"
echo ""
echo "Please, type: $0 -logrotate"
echo "or, insert cron job new line:"
echo " for every day:"... | Shell |
#!/bin/sh
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ] || [ "$4" == "" ] ;
then
echo "Alarm file for wmr-oregon weather logger"
echo "(c) 2012 Den68 <idg68@yandex.ru>"
echo "Global download URL: http://code.google.com/p/wmr/"
echo ""
echo "Use format:"
echo "(SENSOR TYPE) (NUM OF SENSO... | Shell |
#!/bin/sh
# Create Database and table SQLITE3 for Weather SQL Logger
rm -f weather.db
sqlite3 weather.db < ../contrib/wmr.sql
mkdir -p /var/weather
mv -f /var/weather/weather.db /var/weather/weather.db.`date '+%d%m%Y%H%M%S'`
cp -f weather.db /var/weather/weather.db
mv -f weather.db /var/weather/weather.db.TMPL
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
#
# Power ON port 2 triger C2000-CP1
# /usr/bin/php5 /etc/wmr/C2000-CP1.php -p 2 -s 1
# see doc/C2000CP1controlling4LineRU.pdf
# | Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
if [ ! -f /tmp/WMR_WARNING_$1_$2.lock ] ;
then
echo "Warning! Sensor type: $1 num: $2 battery low (value: $3)"
#
# send sms:
# sendsms -n 89110000000 -t "Warning! Sensor type: $1 num: $2 battery low (value: $3)"
#
# or send e-mail from sendmail program:
# echo "Warning! Sensor type: $1 num: $2 battery ... | Shell |
#!/bin/sh
echo $1
#
# Power ON port 2 triger C2000-CP1
# /usr/bin/php5 /etc/wmr/C2000-CP1.php -p 2 -s 1
# see doc/C2000CP1controlling4LineRU.pdf
# | Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
if [ ! -f /tmp/WMR_WARNING_$1_$2.lock ] ;
then
echo "Warning! Sensor type: $1 num: $2 battery low (value: $3)"
#
# send sms:
# sendsms -n 89110000000 -t "Warning! Sensor type: $1 num: $2 battery low (value: $3)"
#
# or send e-mail from sendmail program:
# echo "Warning! Sensor type: $1 num: $2 battery ... | Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
#
# Power OFF port 2 triger C2000-CP1
# /usr/bin/php5 /etc/wmr/C2000-CP1.php -p 2 -s 0
# see doc/C2000CP1controlling4LineRU.pdf
# | Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
echo $1
#
# Power OFF port 2 triger C2000-CP1
# /usr/bin/php5 /etc/wmr/C2000-CP1.php -p 2 -s 0
# see doc/C2000CP1controlling4LineRU.pdf
# | Shell |
#!/bin/sh
echo $1
| Shell |
#!/bin/sh
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ] || [ "$4" == "" ] ;
then
echo "Alarm file for wmr-oregon weather logger"
echo "(c) 2012 Den68 <idg68@yandex.ru>"
echo "Global download URL: http://code.google.com/p/wmr/"
echo ""
echo "Use format:"
echo "(SENSOR TYPE) (NUM OF SENS... | Shell |
#!/bin/sh
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ] || [ "$4" == "" ] ;
then
echo "Alarm file for wmr-oregon weather logger"
echo "(c) 2012 Den68 <idg68@yandex.ru>"
echo "Global download URL: http://code.google.com/p/wmr/"
echo ""
echo "Use format:"
echo "(SENSOR TYPE) (NUM OF SENS... | Shell |
#!/bin/sh
if [ "$1" == "" ]
then
echo "Logrotate data file for wmr-oregon weather logger"
echo "(c) 2012 Den68 <idg68@yandex.ru>"
echo "Global download URL: http://code.google.com/p/wmr/"
echo ""
echo "Please, type: $0 -logrotate"
echo "or, insert cron job new line:"
echo " for every day:"... | Shell |
#!/bin/sh
if [ "$1" == "" ] || [ "$2" == "" ] || [ "$3" == "" ] || [ "$4" == "" ] ;
then
echo "Alarm file for wmr-oregon weather logger"
echo "(c) 2012 Den68 <idg68@yandex.ru>"
echo "Global download URL: http://code.google.com/p/wmr/"
echo ""
echo "Use format:"
echo "(SENSOR TYPE) (NUM OF SENSO... | Shell |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.