As the ASA2 script.sh executes a PHP script internally, you can execute that PHP script directly and use it for your cronjob.
The syntax is:
php -f [path-to-asa2-dir]/lib/IfwAsa2/Wp/Plugin/Cli/Executables/script.php -- "[path-to-asa2-dir]" Asa2_Module_Repo_Cron_Refresh
[path-to-asa2-dir] should be your webserver's local path to the ASA2 plugin directory.
You can append all options documented at http://docs.getasa2.com/cronjobs_repo_refresh.html
Example
php -f [path-to-asa2-dir]/lib/IfwAsa2/Wp/Plugin/Cli/Executables/script.php -- "[path-to-asa2-dir]" Asa2_Module_Repo_Cron_Refresh -lt=3600 --limit=50
Comments
0 comments
Please sign in to leave a comment.