cron job(end of the month)

I have 2 cron job

http://food.orderlastminute.com/invoicecron/generateinvoice?terms=30 http://food.orderlastminute.com/invoicecron/generatepdf

need to run this every end of the month

how to achieve through the panel?

Status: 
Active

Comments

Go to Webmin -> System -> Scheduled Cron jobs, and create two jobs with the appropriate run-time that run the commands :

curl "http://food.orderlastminute.com/invoicecron/generateinvoice?terms=30"
curl "http://food.orderlastminute.com/invoicecron/generatepdf"

OMG, this is one of the worst reply.......

I was asking "how to run this every end of the month" every month has different ending day...

With cron, there unfortunately isn't an easy way to run something on the last day of the month.

If you can, the easiest way to do this would be to run it as early as possible on the first day of the month.

If you do need to run it on the last day of the month, you could try the suggestion mentioned here, which is to setup three different cron jobs... one cron job is for all the months ending in "30", another for "31", and the last for 28:

https://stackoverflow.com/questions/6139189/cron-job-to-run-on-the-last-...

Yeah, there is no way to specify in cron "last day of the month"