thesba_rewilliams Posted October 16, 2012 Share Posted October 16, 2012 I've created a module that integrates our install of WHMCS with another application. Because the integration is implemented via web service, I am queuing activity so that I can run it off in the background rather than making the user wait. This is all pretty standard stuff and is already implemented. However, I now need to figure out how to kick off that job. Creating a new cron job is easy enough, but once I'm inside the job, how do I bootstrap properly so that I can use WHMCS's database connection, logging functionality, etc.? I did see in the docs that you support integrating with the daily cron job, but I need to run far more frequently than that. I have an idea for a really hacky workaround should this not be supported, but it sure seems like there should be an easy way to do this. If this is in fact not supported, what's the best workaround? As I said, I have an idea for a hack, but it's pretty nasty.... BTW, it looks like someone else asked the same basic question here: http://forum.whmcs.com/showthread.php?40126-New-cron-job Unfortunately, there were no useful replies. It's been over a year since that post, though, so perhaps something has changed since then. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.