I have a perl script (which syncs delicious to wp) which:
The o
I suggest looking at my answer to How to simulate the environment cron executes a script with?
This is an similar Jonathan's answer but goes a bit further.