Pergunta

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

Foi útil?

Solução

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
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top