Cron is running but for some reason it's not executing the script. I have checked to see if the script works and it does. I am trying to make the PHP script execute every minute.

* * * * * /etc/php5 /var/www/cron/automatedScript.php


The server is Linux, Ubuntu distro.


Question: How do I find which elements in one array aren't in another?
Answer: If you're doing this for a test, which I assume you are I would highly suggest is_deeply in the newer versions of Test::More

You'll have to update Test::More

cpanp install Test::More


or if you're on perl 5.5

cpan Test::More


Then you'll have use it

use Test::More;
tests =&gt; 1
is_deeply ( \@arr1, \@arr2, 'test failed' );


If you're not doing this for testing, but you're doing this for introspective purposes and the arrays are small, I'd suggest using XXX:

cpanp install http://search.cpan.org/CPAN/authors/id/I/IN/INGY/XXX-0.12.tar.gz


Then you'll have use it

use XXX;
YYY [ \@arr1, \@arr2 ];