lmtab: setting variables possible: PATH=${PATH}:/usr/sbin usefull for machines with find fuser-problems
This commit is contained in:
parent
23d1ce399b
commit
4a729984f6
|
@ -2,6 +2,9 @@
|
|||
# Diese Datei sollte ~/.lmtab heiszen.
|
||||
#
|
||||
|
||||
# Variablen, etwa damit fuser gefunden werden kann.
|
||||
PATH=${PATH}:/usr/sbin
|
||||
|
||||
/opt/jbossmsg/jboss/server/default_4/log *.log 30
|
||||
|
||||
# Vorsicht:
|
||||
|
|
|
@ -56,9 +56,15 @@ then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
eval `sed -ne '
|
||||
s/#.*//;s/'\''/'"'\\\\\''"'/g;
|
||||
s/\${\([a-zA-Z][0-9a-zA-Z_]*\)}/'\''"$\1"'\''/;
|
||||
s/^\([a-zA-Z_][0-9a-zA-Z_]*\)=\(.*\)/\1='\''\2'\''/p
|
||||
' < "$c"`
|
||||
|
||||
# Format: Verzeichnis [Ausdruck[/Ausdruck[,...]] [Aufbewahrungszeit]]
|
||||
# Verzeichnisse duerfen nur einmalig Vorkommen
|
||||
sed -ne 's/#.*//;/\//p' "$c" | while read dir exp age opts
|
||||
sed -ne 's/#.*//;s/^[a-zA-Z_][0-9a-zA-Z_]*=.*//;/\//p' "$c" | while read dir exp age opts
|
||||
do
|
||||
[ X = "X$age" ] || age="-a$age"
|
||||
while [ ! "X." = "X${exp}" ]
|
||||
|
|
Loading…
Reference in a new issue