[root@localhost /root]# netstat -tunlp |awk '/137/;/138/{print}' udp 0 0 192.168.1.200:137 0.0.0.0:* 539/nmbd udp 0 0 0.
备份数据库的shell脚本一
#!/bin/bash#指定运行的脚本shell#运行脚本要给用户执行权限bakdir=/backupmonth=`date +%m`day=`date +%d`year=`date +%Y`hour=`dat
代码一ubuntu与centos
ubuntu:#!/bin/bashecho
备份网站内容
#!/bin/bash#指定运行的脚本shell#运行脚本要给用户执行权限bakdir=/backupmonth=`date +%m`day=`date +%d`year=`date +%Y`hour=`date +%k`m
俺也是新手,写的有点老土,权当练手了,供初学的朋友们参考吧。
#!/bin/bashif [ $succ_ping -gt $((ping_count-1)) ];thenif [ -f ./alarm_file/alarm_$host ]
#!/bin/bash#main---network=192.168.1ping_count=3IP=1:>IP_use:>IP_idle:>ping_actionecho
#!/bin/bashdeclare gw=`route -n | grep -e '^0.0.0.0'`declare gwname=`echo $gw | grep -oe 'w*$'`declare gwip=`echo $gw |