I added the following command in crontab -e:
15 * * * * php /home/rizwan/PHP-workspace/mgstore/testcron.php
I need to run testcron.php every 15 minutes; for testing purposes I used the following PHP code in testcron.php:
<?php
echo "test";
15 * * * * /usr/bin/php /home/rizwan/PHP-workspace/mgstore/testcron.php >> /home/rizwan/cron.out
this was working .but i have one php script,for adding customers from magento to ERP,when i run script manually,it asks for authorization,after accepting it creates customers into ERP from magento,I need whenever i added customer in magento after 5 or 10 mins this script should run and add the customer to ERP.how this can be done ?,If any one have any idea,please help ?