you need to setup environment assuming you inherit nothing from cron or your home .profile/.login/etc.
open a log file and write to it, so you have an audit trail, what I have done is created a standard log
routine that I feed a message to, it writes out the time and the message. This is handy for scripts that
serially work though a process, I when each step started/ended, and what happened. One thing you could do
for debugging is dump your %ENV hash out to verify environment.
Since this executes fine from the command line, once you get your cron ENV setup to mimic your login environment, you
should be good to go.