Lines Matching +full:protect +full:- +full:exec
37 if [ ! -f /etc/uucp/Systems ]; then
46 if [ ! -f /etc/asppp.cf ]; then
49 X=`sed -e 's/#.*$//' /etc/asppp.cf`
50 set -- $X
51 while [ $# -ne 0 ];
74 if [ $del -ne 1 ]; then
81 if [ -n "$outstr" ]; then
102 # Running as uucp, take care to protect things
124 O_LOGS=$OLD/Old-Log
125 ACCT_LOGS=$OLD/Old-acct
126 SEC_LOGS=$OLD/Old-sec
128 [ -f $ADMIN/xferstats ] && mv $ADMIN/xferstats $OLD/xferstats
129 [ -f $ADMIN/audit ] && mv $ADMIN/audit $OLD/audit
130 [ -f $ADMIN/command ] &&mv $ADMIN/command $OLD/command
131 [ -f $ADMIN/errors ] && mv $ADMIN/errors $OLD/errors
132 [ -f $ADMIN/Foreign ] && mv $ADMIN/Foreign $OLD/Foreign
143 if [ -f $ADMIN/perflog ]
151 # are retained: 2 -> 3, 1 -> 2, current -> 1.
156 [ -f ${O_LOGS}-$i ] && mv ${O_LOGS}-$i ${O_LOGS}-$j
157 [ -f ${SEC_LOGS}-$i ] && mv ${SEC_LOGS}-$i ${SEC_LOGS}-$j
160 [ -f $ADMIN/security ] && mv $ADMIN/security ${SEC_LOGS}-1
164 # Combine all log files into O_LOGS-1.
167 > ${O_LOGS}-1
170 if [ ! -d $LOGDIR/$i ]
175 rm -f $LOGDIR/$i
196 echo "********** $j ********** ($i)" >> ${O_LOGS}-1
197 cat $j >> ${O_LOGS}-1
198 rm -f $j
205 # are retained: 2 -> 3, 1 -> 2, current -> 1.
207 if [ -f $ADMIN/account ]
212 [ -f ${ACCT_LOGS}-$i ] && mv ${ACCT_LOGS}-$i ${ACCT_LOGS}-$j
214 [ -f $ADMIN/account ] && mv $ADMIN/account ${ACCT_LOGS}-1
220 uucleanup -D7 -C7 -X2 -o2 -W1
223 # grep -v 'warning message sent to uucp' $ADMIN/uucleanup > $OLD/uucleanup
224 [ -f $ADMIN/uucleanup ] && mv $ADMIN/uucleanup $OLD/uucleanup
225 if [ -s $OLD/uucleanup ]
232 for d in $SPOOL/[0-9A-Za-z]*
234 if [ -f $d ]
240 if [ -z "`ls $d`" ]
258 if [ -d $s ]
261 rm -fr $s
273 find $SPOOL -name core -print > $TMP
274 if [ -s $TMP ]
282 #find $PUBDIR -type f -mtime +30 -exec rm -f {} \;
283 find $PUBDIR/* -depth -type d -exec rmdir {} \; >/dev/null 2>&1
284 find $SPOOL/* -depth -type d -exec rmdir {} \; >/dev/null 2>&1
285 find $SEQDIR -type f -mtime +30 -exec rm -f {} \;
286 find $WORKDIR -type f -mtime +1 -exec rm -f {} \;
287 find $STATDIR -type f -mtime +2 -exec rm -f {} \;
288 find $CORRUPT -type f -mtime +10 -exec rm -f {} \;
290 rm -f $LOCKS/LTMP*
291 rmdir $SPOOL/[0-9A-Za-z]* >/dev/null 2>&1
296 grep passwd ${O_LOGS}-1 > $TMP
297 grep "REQUEST.*/" ${O_LOGS}-1 >> $TMP
298 if [ -s $TMP ]
305 {prev = $0}' ${O_LOGS}-1 > $TMP
306 if [ -s $TMP ]
311 uustat -q > $TMP
312 if [ -s $TMP ]
314 (echo "Subject: uu-status"; echo; cat $TMP) | mail $MAILTO
318 if [ -s $TMP ]
323 if [ -s $OLD/errors -o -s $OLD/Foreign ]
340 rm -f $MAILDIR/nuucp $TMP