Next project: I need to be able to upload an inventory file in the back ground. I have a vendor that is going to send me a csv file and I want to upload it to the codes database as a product. I know I can do it using the task scheduler for windows (cron for you unix guys not sure what the mac uses)
Just asking so I don’t re-invent that cylindrical object.
Make your script executable as a command line. Then you can either schedule it as cron/scheduler or use the emr’s background services - no gui to set it up but you can add a record to table and then turn service on or off.
See reports -> services -> background services. If you follow Direct stuff, you can even get store and show a log.
You should already have php-cli installed. Since there is no login for a cronjob task, it is better to expect the site as parameter or set one before call to globals.