Hi,
a last word for today
I'm using a cron task to automatically delete expired files ( I'm using
the expire modules to mark files to get deleted)
The cron task is launching a script shell that mimics an administrator
doing a maintenance task
this is the shell script :
(an administrative account (maitenance,password) is used. You'll see
french url as the only language on my upload site is french, but it is
easy to chnge )
#!/bin/bash
WGET=`which wget`
OUTPUT=/dev/null
OPTION=--quiet
HOTE=localhost
$WGET -O $OUTPUT $OPTION --proxy=off --keep-session-cookies
--save-cookies /tmp/cookies.txt --post-data
"action=login&step=2&username=maintenance&pwd=password"
http://$HOTE/index.php
$WGET -O $OUTPUT $OPTION --proxy=off --load-cookies /tmp/cookies.txt
--post-data
"action=adminmaintenance&step=2&expire=Supprimer+les+expirations" ht
tp://$HOTE/index.php
$WGET -O $OUTPUT $OPTION --proxy=off --load-cookies /tmp/cookies.txt
--post-data "action=adminmaintenance&step=2&delete=Oui%2C+effacer+tout"
http:/
/$HOTE/index.php
$WGET -O $OUTPUT $OPTION --proxy=off --load-cookies /tmp/cookies.txt
http://$HOTE/index.php?action=logout
|