发布时间:2013-07-10 17:51:20
#!/bin/shyum -y install vsftpd* #安装ftp软件yum -y install db4-utils* #认证用户的软件echo "The installation is complete"service vsftpd start #启动服务echo "================================================="service vsftpd stop #停止服务echo "service is ok"chkconfig vsftpd on #服务.........【阅读全文】
发布时间:2013-02-02 10:51:58
#!/bin/sh#backup files by dateDATE=`/bin/date +%Y%m%d`/bin/tar -cfz /backup/$1.$DATE.tar.gz $1 > /dev/null 2>> /backup/$1.bak.log/bin/gzip /backup/$1.$DATE.tarif [ $? -eq 0 ]then echo "$1 $DATE backup successfuly" >> /backup/$1.bak.logelse echo "ERROR:failure $1 $DATE .........【阅读全文】
发布时间:2013-02-02 10:21:02
#!/bin/sh#auto mail for system info/bin/date +%F >> /tmp/sysinfoecho "disk info:" >> /tmp/sysinfo/bin/df -h >> /tmp/sysinfoecho "online users:" >> /tmp/sysinfo/usr/bin/who | /bin/grep -v root >> /tmp/sysinfoecho "memory info:" >> /tmp/sysinfo/usr/free -m >> /tmp/sysinfoecho >> /tmp/sysinf.........【阅读全文】