[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: --purge and log/spool files



On Tue, Apr 05, 2005 at 05:26:15PM +0200, Florent Rougon wrote:
> Justin Pryzby <justinpryzby@users.sourceforge.net> wrote:
> 
> > Note that there was a relevant thread on -devel around about last
> > October.  Someone complained that their thesis was in /var/log/apache/
> > and was deleted when they purged the package.  As such, you might
> > consider something like rm -f /var/log/apache/{access,error}.log*;
> 
> Warning: this type of globbing is not supported by the POSIX shell.
> Therefore, it is not suitable for /bin/sh. You can write a for loop, or

Good solution.

> use "#! /bin/bash".

Less good solution...

In this case, with only 2 different alternatives, the best solution
would probably be:

rm -f /var/log/apache/access.log* /var/log/apache/error.log*


Regards: David Weinehall
-- 
 /) David Weinehall <tao@debian.org> /) Rime on my window           (\
//  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   //  Diamond-white roses of fire //
\)  http://www.acc.umu.se/~tao/    (/   Beautiful hoar-frost       (/



Reply to: