全部博文(535)
发布时间:2024-04-17 18:27:04
sshpass -p 'Password' ssh root@10.40.4.59 "ip ad && df -hT"......【阅读全文】
发布时间:2022-04-19 17:06:47
vi ipaddresses192.168.1.2192.168.1.3192.168.1.4192.168.1.5192.168.1.6192.168.1.7#!/bin/bash#reading data from a filecount=1cat ipaddresses | while read linedo echo "Line $count: $line" ip=`echo "$line" | awk -F# '{print.........【阅读全文】
发布时间:2014-09-05 14:45:44
cat ora_admin.shshutdown_ora(){ps -ef|grep lsnr|grep -v grep|awk -v ora_user="$USER" '$1==ora_user{print $(NF-1)}' >~/lsnr.$USERps -ef|grep pmon|grep -v grep|awk -v ora_user="$USER" '$1==ora_user{print $NF}'|awk -F _ '{print $NF}' >~/sid.$USERcat ~/sid.$USER|while read siddoexport ORACLE_.........【阅读全文】
发布时间:2014-06-13 10:35:01
#!/bin/bash#####################jdk install##############################os_version=`uname -a |awk '{ print $12}'`ftpUser=rootftpPWD=root6adp2 if [ $UID -ne 0 ] ; then echo curent user is not root! exit 4 else echo current user in root fi i.........【阅读全文】
发布时间:2014-06-08 09:43:15
####################按小时统计url访问次数# $1 url#!/bin/shif [ "$1" = "" ]then echo "Url is null ... EXIT"exit 1fiLOG='/www/apache_log'HOUR="`seq -w 0 23`"files="`ls -trl ${LOG}/web-?*.log | awk '{print $9}'`"url="$1"export LOG HOUR files urlfor file in $filesdof.........【阅读全文】