Eero af Heurlin wrote:
>
>
> Someone actually uses this script, jippee! Some might remember I made it
> a long time ago but didn't have the resources to properly test it, have
> you used the delete_expired.pl script as well ?
I do not actually use delete_expired.pl but remove_unapproved.pl works
well at least for articles. I remember I corrected the bug about month
number begining at 0 in perl not at 1, but when I wanted to report it:
It was already corrected.
But what I also discovered is that expat let the xmlgz in utf and
just have to run something like that:
gunzip /tmp/hourly_export_${THISDATE}.xml.gz
/etc/repligard/remove_unapproved.pl /tmp/hourly_export_${THISDATE}.xml
mv /tmp/hourly_export_${THISDATE}.xml
/tmp/hourly_export_${THISDATE}.xml.orig
mv /tmp/hourly_export_${THISDATE}.xml.cleaned
/tmp/hourly_export_${THISDATE}.xml
recode UTF-8..ISO-8859-1 /tmp/hourly_export_${THISDATE}.xml
recode is afaik safe to use since blobs are base64 encoded, no chance to
recode a pixel of an image :)
Nicolas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]