📄 nightly.sh
字号:
: 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -