/api/cron.php osticket
yes you can :)
Have a look at (http://www.osticket.com/forums/showp...07&postcount=6) for more information on how to run cron.php using wget.
Just create an API key for that remote host and setup crontab.
2 hours later and I finally found this post! Godsend. Let me dumb this down a bit for the lay person who is installing osTicket who may have searched for this answer a little differently.
Ok so here was my deal... I noticed that osTicket does not fetch email from POP or IMAP unless I or someone else is logged onto the Admin portion of osTicket. After researching this I found a lot of answers that seemed to indicate using lynx path/to/api/cron.php would work. I tried that every which way I could using //localhost and //domain.com and //ip.addr none of them worked. I always got 77 returned as an error which has something to do with the API credentials. So then I stumbled upon the post above, it's the solution you're looking for if you have this problem so take the time to read it carefully and do what it says. If you're using a new install of osTicket and you haven't been in the API section yet, it's under settings then click on the API icon. Delete the default entry that exists then after you have done that, fill in the required fields and use the generated API key as your --user-agent string (see previous post with link). One more thing, if you try accessing your cron.php file using http://localhost(http://localhost) and all that happens is that it comes back to the terminal prompt real quick then you need to use your internal IP address instead of //localhost. It should take at least a second or two to come back. When I run the command on my server it takes about 4-5 seconds, but my server might be a little slower. Best way to test is to close out of all instances of osticket in your browser then send an email to the email address you have configured and wait for the auto generated email to come to your in-box before opening the browser. I only say this because you may have auto-cron enabled which actually runs the email fetch program in the background once every 3 minutes or so minutes.
Worth noting.. You should run the wget command (with all of the options specified in the link provided in previous post remembering to use YOUR newly generated API key instead of what's displayed in the post before you add the cronjob. OK, once this gets indexed by GOOG it should help a lot of people who were in my situation.
- T. Troglia