nightly.sh
来自「ftam等标准协议服务器和客户端的源代码。」· Shell 代码 · 共 53 行
SH
53 行
: run this script through /bin/sh: nightly maintenance script for Level-1 DSA: contact c=@(country)@cn=Manager to get a time slot for cron to run this scriptW="@(dsa)"D=@(etcdir)quipu/@(wildlife): make sure dish is in the search pathPATH=${PATH-:/bin:/usr/ucb:/usr/bin}:@(bindir)export PATHif [ ! -d $D ]; then echo "unable to find database directory for $W: $D" 1>&2 exit 1ficd $D: first, mail the logs to the pilot project sponsors(echo "To: wpp-stats@nisc.psi.net" ; \ echo "Subject: $W DSA activity" ; \ echo "" ; \ cat dsap.log) | /bin/mail wpp-stats@nisc.psi.net(echo "To: wpp-stats@nisc.psi.net" ; \ echo "Subject: $W DSA stats" ; \ echo "" ; \ cat stats.log) | /bin/mail wpp-stats@nisc.psi.net: second, cycle the logsrm -f iso.*.log ros.*.log [0-9]*.log dish.log xquipu.logfor A in [a-z]*.logdo x=2 while [ $x -gt 0 ]; do y=`expr $x - 1` cp $A-$y $A-$x >/dev/null 2>&1 x=$y done cp $A $A-0 >/dev/null 2>&1 > $A chmod 666 $Adoneexit
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?