Problem with perl script on crontab

Hi everybody,
I have a perl script. I want to run it as a cron job every 10 minutes. I insert the command into crontab , using crontab -e.
The problem is, I didnt get any output from script inside crontab, whereas when I run it manually through 'perl myscript.pl' it running well. Here is the cron

# m h  dom mon dow   command
  */10 * * * * /opt/myscript.pl >> /opt/output.out

One of my friend tell me to run perl script through shell, but it doesnt work to,
Could anybody help me,

Thanks in advance.

Is the executable bit set on the script? Does it work if you call it using the exactly same command line as in the crontab? Do you rely on any environment variables being set, on any special paths? Is the script expected to run in a certain directory? Do you call any programs that might require access to an X11 server or the console?

1 Like

Great answer,
All is work , after I set the environment variable and PATH of my program
Thanks a lot Pludi
:b::b::b: