• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Cronjob in batch mode?

In one of my XenForo-AddOns I implemented a cronjob, which runs more than one hour.
the sysadmin told me, that for technical reasons such a job has to run in batch mode.
any idea how this can be achieved?
If a cron job runs for an hour, it shouldn't be a cron job. Either break it into smaller, more frequent jobs, or have it running as a daemon properly.

If you insist on running it periodically through XenForo, you could always spin up a new process to do it. Something like...

exec('php your_file.php &');