inn2: innfeed silently dies when logfile reaches 2G

Alexander Bartolich alexander.bartolich at
Thu Aug 23 21:20:23 UTC 2007

Julien ÉLIE wrote:
> [...]
>     grep "log-file" ~/etc/innfeed.conf | sed 's/\s//g' | sed 's/.*:\(.*\)#.*/\1/'

Is that \s in the first sed supposed to work as in perl?
The POSIX equivalent is [[:blank:]]
A more robust single-sed operation would be

sed -ne 's/^[[:blank:]]*log-file:[[:blank:]]*\([^[:blank:]]*\).*/\1/p' ~/etc/innfeed.conf

But then I prefer the awk solution

awk '$1 == "log-file:" { print $2 }' ~/etc/innfeed.conf


More information about the inn-workers mailing list