No, replace \path\to\php with path to php. On my linux box it's /usr/bin/php
. To find the path to your php, open a terminal on your osTicker server, and run the command which php
.
On a typical LAMP with ostTicket, the line in crontab to fetch every 5 mins is:
*/5 * * * * www-data /usr/bin/php /var/www/html/osticket/api/cron.php