I have a PHP file on my server which should get executed to import a CSV File. How can I do that via BATCH, just like a Cron Job does.

Thanks

有帮助吗?

解决方案

You can directly add php file to crontab, for this file must have 755 permission. To add

php -f absolute file path

or you can create .sh file and call php file from it, for this also .sh file must have 755 permission.

#!/bin/bash
php -f absolute file path
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top