osticket v1.10.1

Php 5.6

IIS10

Currently working on auto fetching emails.

Before I get into it, am I correct in thinking that cron.php works with an Imap connection just like the built in "auto cron" setting does?

Trying to fetch new tickets even while no agents are logged in.

We use exchange.Postoffice.com over port 993

I just can't seem to get it to work. Followed multiple past posts in the forum but can't find where I've gone wrong.

I just wanted to get this initial question up before I post all the steps I have taken.

Have you taken look at this

http://osticket.com/wiki/POP3/IMAP_Setting_Guide

http://forum.osticket.com/d/discussion//setting-up-scheduled-task-to-check-for-new-mail

The second link lists my steps exactly.

When I run the .bat.... cmd pops up for less than a second then closes (might be normal)

But emails are never pulled in. Might I add that if I turn on the auto cron setting, everything works just fine.

I don't need to edit the cron file at all right?

If it's working for you you don't have to change anything in cron

Here is a copy/paste of the .bat I created."C:\Progra~2\PHP\v5.6\php.exe -f C:\inetpub\wwwroot\osticket\api\cron.php"All of the discussions and instructions appear to be so easy.I feel like I'm missing the smallest thing.When I manually run, the Command line flashes on the screen for less than a second and goes away, so it seems like it's doing something.I have now also tried the cron.php file from a few other releases, just to test.I don't have to edit any of these files right?and just to mention it again, if I turn on Auto Fetch, it works just fine, so I feel like its not my email settings. but let me know if you have an idea.

got it to work..... But I'm not sure why it matters....I moved my quotes in the .bat to the followingC:\Progra~2\PHP\v5.6\php.exe -f "C:\inetpub\wwwroot\osticket\api\cron.php"So I guess if anyone else is having trouble... try playing with placement of your quotes.

Quotes matters because you are running php.exe and also pointing to your osTickets path, when you put all in one quotes php does not execute

Thanks for the explanation ramrajoneI appreciate all the help!

You Welcome, great to see everything worked out for you

a year later

What should i do in case of ubuntu server18.04

  • RBGE replied to this.

    amarnath Ideally you should make your own thread, but in Linux it's a case of setting a cron job. As the web user: crontab -e
    then type something like
    */2 * * * * php /path/to/api/cron.php > /dev/null 2>&1

    This runs the cron.php file every 2 minutes, and disables the cron notifications each time it runs. Change the 2 to 5, 10, or whatever is required. Replace "/path/to" with the directory of your osTicket installation.

    In the above 'php' should be the path to your php.

    hello team,
    I am using osticket 1.12v in ubuntu 18.04 with php7.2. i have disabled auto cron and keep the default log level to DEBUG. Also i have generated API key but i dont know how to use were
    i must use it to generate auto tickets without any agent login . I have made the changes that you have said in above solution in crontab . BUt i am not getting generated any new tickets . please se the screen shots.

    2 years later
    Write a Reply...