I need to run a codeigniter job once everyday, I need to check my mysql db in order to see if there is an scheduled email task for that day, if there is one, send the emails for that service; previously, that service was made manually, there, what we used to do was to create an uri with the proper parameters and submit it via a browser, like this:
controller method 1 dynamic_id_to_use 7
$: php index.php controller method 1 dynamic_id_to_use 7
php index.php controller method 1 dynamic_id_to_use 7
Let's do one thing make a new table with 5 columns
Cron_table ----------- Id status Dynamic Id Batch size Cron-status
Now store all your cron details to this table as per your requirements and set cront-status to zero. Now make a cron for this to take data with cron-status =0 and after getting results process the work you want to after work done set cron-status = 1.
Let me know if this helps you or not.
Enjoy coding ...