Cronjob for PHP

joelsamthomas

New member
Hi All,

Currently I have a cron job which will run 4 times in a day

15 */4 * * * unb /opt/unb/bin/execute_attendance> /dev/null 2>&1

My new requirement is , I need to run this PHP program two times in a month and also I need to pass a new parameter along with PHP program.

30 1 1,15 * * unb /opt/unb/bin/execute_attendance> /dev/null 2>&1 - I think this code will run two times in a month

I need to send a parameter like sysdate -14 along with execute_attendance PHP program.

execute_attendance sysdate -14 , how can I send this parameter.......please help me...
 
Back
Top