Uploading files in background

teryhill wrote on Tuesday, June 09, 2015:

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.

Terry

mdsupport wrote on Tuesday, June 09, 2015:

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.

mdsupport wrote on Tuesday, June 09, 2015:

My 2 cents - can’t beat flexibility and reliability of any OS level scheduler.

teryhill wrote on Tuesday, June 09, 2015:

Would you happen to have an example of “script executable as a command line”?

Thanks
Terry

teryhill wrote on Tuesday, June 09, 2015:

Your 2 cents have proven valuable in the past, Keep chunking them in.

Terry

mdsupport wrote on Tuesday, June 09, 2015:

openemr/modules/sms_email_reminder/cron_email_notification.php

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.