Script not running properly when run from Crontab

Hi

I am a novice Linux/Perl user and am struggling to overcome what I am sure is a simple problem.

I am using a perl program to create a shell script daily containing between 10 and 30 "at -f" commands for the same day. Then I change the file attributes to allow the file to be executed. When I run this script from the terminal it works fine and all the "at" commands are set up, however when I run it as a crontab event it only sets up the first 8 every time. Is there a simple explanation for this? If not, is there a way I can force the script to open and execute in a terminal session when invoked from crontab?

I am running the Hardy Heron version of Ubuntu.

Thanks for any help you can give me.

Simon

welcome to unix.com

please use our FAQs and the search function before asking questions... with little effort you should find this:

if this doesn't help, please ask again.

I don't know your version of Linux, but there is a maximum size to the cron job queue. In similar circumstances I staggered the at jobs with sleep statements.