首页 软件开发 代码片段 shell ( Page 18 )

shell 564

#Shell
mysql数据批量导入导出

#!/bin/bash src_database="192.168.10.10" src_database_user="root" src_database_passwd="xxx…

2015-07-22 241

#Shell
mysql每日备份shell脚本

每天固定时间用mysqldump 备份mysql数据。 #!/bin/bash #每天早上4点, mysql备份数据 orangleliu #chmod 700 backup.sh…

2015-07-22 890

#Shell
ftp自动上传mysql备份文件

上一篇中 mysql每日备份shell脚本 给出了使用mysqldump备份到本地的脚本,接着下面是利用ftp把备份文件传输到远程服务器的脚本。 当然也可以用scp,rsync等等…

2015-07-22 587

#Shell
down机发短信通知

#!/bin/bash #check_down check_date=`date +%Y/%m/%d" "%k:%M` check_ip=/root/zhubo/script/ch…

2015-07-21 719

#Shell
批量备份svn 服务工程文件

#!/bin/bash #------------------------------------------------------- #TITLE: SVN backup Ha…

2015-07-20 568

#Shell
扫描一个网段的所有端口

for /l %a in (1,1,254) do for /l %b in (1,1,65535) do start /low /min telnet 192.168.0.%a …

2015-07-19 246

#Shell
nginx服务自动启动

#!/bin/bash # nginx Startup script for the Nginx HTTP Server # it is v.0.0.2 version. # ch…

2015-07-18 831

#Shell
给setenv.sh增加-XX:+UseCompressedOops

#!/bin/bash #Program: # 在每个tomcat下的bin里创建setenv.sh #1.输入目录 read -p "请输入shequ的目录:" dir if […

2015-07-18 529

#Shell
linux中,下载完关机。

#!/bin/bash # Created By: Demo <demo@demo.com> # Created Time: 2015-01-30 12:36:44 #…

2015-07-16 414

#Shell
如何在shell脚本中提示用户输入数据,并将数据传入到脚本中?

#!/bin/bash # This example shows how to prompt for user's input. echo -n "Are you in prod …

2015-07-16 935

#Shell
ftp自动下载文件

cd /home/oracle/ftpdata short_ymd=$(date +%y%m%d) file="10628110.20""$short_ymd"".zip" ftp…

2015-07-14 837
1 16 17 18 19 20 47