shell

find . -exec chmod 2770 {} \;
find . -exec chown www-data.www-data {} \;
svn cleanup

export ORACLE_HOME=/home/oracle/program/
export ORACLE_SID=luoxiaoping
export LD_LIBRARY_PATH=/home/oracle/program/lib/

D:\java\workspace6.5\JavaService>JavaService -install JavaTimer "%JAVA_HOME%/jre/bin/server/jvm.dll" -Djava.class.path=%CD%/JavaService.jar;%CD%/htmllexer.jar;%CD%/htmlparser.jar;%CD%/mysql-connector-java-5.1.15-bin.jar -start timer.AlarmClock -out %CD%/stdout.log -err %CD%/stderr.log -current %CD% -description "JavaTimer服务"
The JavaTimer automatic service was successfully installed

D:\java\workspace6.5\JavaService>JavaService -uninstall JavaTimer
Successfully uninstalled service JavaTimer

#!/bin/bash
/usr/bin/mysqldump -f -uroot -pGu0Reno619*@/ --default-character-set=utf8 --opt bhe | gzip > /home/deweb2/mysql_backup/bhe-`date +%Y%m%d%H`.sql.gz
/usr/bin/mysqldump -f -uroot -pGu0Reno619*@/ --default-character-set=utf8 --opt bhe_cn | gzip > /home/deweb2/mysql_backup/bhe_cn-`date +%Y%m%d%H`.sql.gz
/usr/bin/mysqldump -f -uroot -pGu0Reno619*@/ --default-character-set=utf8 --opt SupeSite | gzip > /home/deweb2/mysql_backup/SupeSite-`date +%Y%m%d%H`.sql.gz
/usr/bin/mysqldump -f -uroot -pGu0Reno619*@/ --default-character-set=utf8 --opt bbs | gzip > /home/deweb2/mysql_backup/bbs-`date +%Y%m%d%H`.sql.gz
/usr/bin/mysqldump -f -uroot -pGu0Reno619*@/ --default-character-set=utf8 --opt WeiBo | gzip > /home/deweb2/mysql_backup/WeiBo-`date +%Y%m%d%H`.sql.gz

#!/bin/bash
scp -P 40006 /home/deweb2/mysql_backup/bhe-`date +%Y%m%d`*.sql.gz /home/deweb2/mysql_backup/bhe_cn-`date +%Y%m%d`*.sql.gz /home/deweb2/mysql_backup/SupeSite-`date +%Y%m%d`*.sql.gz /home/deweb2/mysql_backup/bbs-`date +%Y%m%d`*.sql.gz /home/deweb2/mysql_backup/WeiBo-`date +%Y%m%d`*.sql.gz [email protected]:/home/data_bak/mysql_bak

# m h  dom mon dow   command
00 00 * * * /home/lxp/mysql_backup

# m h  dom mon dow   command
#0 * * * * /home/lxp/timing/timing_statistics_zone_house
*/1 * * * * /home/lxp/timing/AutoDistributionTelSale

mount -t nfs 10.10.5.7:/home/gren02/360 /home/dev/web/360

netstat -n | awk '/^tcp/ {++S[$NF]} END {for(a in S) print a, S[a]}'

#!/bin/bash
echo "begin time:"`date` >> /home/lxp/timing/log_1.txt
php /home/bhe2/source/cron/AutoDistributionTelSale.php >> /home/lxp/timing/log_1.txt
echo "end time:"`date` >> /home/lxp/timing/log_1.txt

#!/bin/bash
f=`find /home/dev/web/new_360/360 -name '*.JPG'`
for i in $f
do
b=`echo $i |tr "[:upper:]" "[:lower:]"`
mv $i $b
done

#!/bin/bash
find . -name .svn | while read line
do
chmod 777 $line
done

你可能感兴趣的:(shell)