Hi, just my 2 cents, no offense meant :)
On Thu, Apr 06, 2006 at 07:43:28PM +0200, General Stone wrote:
> + cd "$(echo "$FILE" | grep -o "\/.*\/")"
Hm, since the acct init-script has default runlevels and a default
sequence number, it has access to all /usr/bin tools already and
so there is IMHO no need to do kludgy things like this dirname
replacement with strange side effects (i.e. for relative paths)...
Probably
cd "$(dirname "$FILE")"
is a bit cleaner and does the trick, too :)
> #FILE="/var/log/account/pacct"
Hm, perhaps leaving this at the default location is a good idea, since
/var/log/account usually doesn't exist.
Thanks for your work & regards
Mario
--
<Sique> Huch? 802.1q? Was sucht das denn hier? Wie kommt das ans TAGgeslicht?
signature.asc
Description: Digital signature

