Does not run via cron job

I have a perl script, when I ran manually it works perfect. I check the permissions which are fine.

How can I find out why it is not running? how can I setup a log to check.
I am running it on solaris 9.

It compares multiple files, SCP and then send out an e-mail.
As I said when I ran it from command prompt, it works perfect.

Thanks.

check out the crontab FAQ.

Thanks, actually I figured it out, for scp, i have to specify full command line path. It is working now.

thanks