Thanks for the reply.
All working now although I have a suspicion that part of the problem was my cron table suffering after too many edits. In the end I reverted to a saved version, applied my changes and it worked. It also seems that playing with the system clock - eg. setting it to just before the cron job is due, means the script fails to run sometimes. Restart sorts it out though.
Thanks again.