我可以在cron作业的地方运行后端脚本吗?

我可以在cron作业的地方运行后端脚本吗?

问题描述:

I have an hourly cron job in my project that checks for any new orders placed in the system. If there are any, it executes some required processing; otherwise it just completes.

Is there some way I can change this, so that any new order immediately triggers a back-end script?

In you can easely run bash/shell commands instead of having a cron that run every hour. Just execute the script when the order is validated.