projects
/
unix-history
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
99df63a
)
minor whacks to find of /tmp
author
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Tue, 18 Sep 1990 04:05:09 +0000
(20:05 -0800)
committer
Keith Bostic
<bostic@ucbvax.Berkeley.EDU>
Tue, 18 Sep 1990 04:05:09 +0000
(20:05 -0800)
SCCS-vsn: etc/daily 5.11
usr/src/etc/daily
patch
|
blob
|
blame
|
history
diff --git
a/usr/src/etc/daily
b/usr/src/etc/daily
index
5d67918
..
ba565d4
100644
(file)
--- a/
usr/src/etc/daily
+++ b/
usr/src/etc/daily
@@
-1,6
+1,6
@@
#!/bin/sh -
#
#!/bin/sh -
#
-# @(#)daily 5.1
0
(Berkeley) %G%
+# @(#)daily 5.1
1
(Berkeley) %G%
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s`
#
PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/local
host=`hostname -s`
@@
-11,8
+11,8
@@
echo ""
echo "Removing scratch and junk files:"
if [ -d /tmp ]; then
cd /tmp && {
echo "Removing scratch and junk files:"
if [ -d /tmp ]; then
cd /tmp && {
- find .
! -name .
-atime +3 -exec rm -f {} \;
- find .
! -name . -type d -mtime +1 -exec rmdir {} \; >/dev/null 2>&1; }
+ find .
-type f
-atime +3 -exec rm -f {} \;
+ find . ! -name . -type d -mtime +1 -exec rmdir {} \; >/dev/null 2>&1; }
fi
if [ -d /var/tmp ]; then
fi
if [ -d /var/tmp ]; then