Discussion:
[otrs] Cron jobs in windows
Keith Turner
2007-01-10 20:45:31 UTC
Permalink
I want to download pop3 mail every 5 minutes instead of 10.

Looking at the manual, the chron job instructions at

http://doc.otrs.org/2.1/en/html/x1215.html#email-receiving-pop3
http://doc.otrs.org/2.1/en/html/x325.html#cronjobs

seem to be linux specific, we're using WindowsServer2003.

Is it as simple as editing var\cron\postmaster_pop3.dist to read
*/5 * * * * $HOME/bin/PostMasterPOP3.pl >> /dev/null
instead of
*/10 * * * * $HOME/bin/PostMasterPOP3.pl >> /dev/null
?

Is a restart of OTRS needed to initialize it?

Or do I need to set up a recurring job on the windows system itself?

Keith
Tobias Lütticke
2007-01-11 09:49:48 UTC
Permalink
Hi Keith,

looking at <install-root>\OTRS_Restart.bat you find the command:

perl.exe <install-root>otrs\bin\Cron4Win32.pl

This re-reads "var\cron\postmaster_pop3.dist" and updates "CRONw\crontab.txt".
There you will find the updated value.

Restart of OTRS should not be necessary as the crontab.txt may be updated while
the cron service is running and it picks up any changes. At least
CRONw\README.txt says:

<quote>
The service will parse the crontab again if it the file modification time
changed since last parsing so feel free to alter the crontab while the
service is running.
</quote>

What I don't know is, how often the cron service checks the crontab.txt for
modifications. You may force by restarting cron only (without OTRS as a whole)
using the commands "net stop cron" and "net start cron".

So what you will have to do is:
* Update var\cron\postmaster_pop3.dist
* Call perl otrs\bin\Cron4Win32.pl
* (optional) "net [stop|start] cron"

That should do it.

HTH,
Tobias
Post by Keith Turner
I want to download pop3 mail every 5 minutes instead of 10.
Looking at the manual, the chron job instructions at
http://doc.otrs.org/2.1/en/html/x1215.html#email-receiving-pop3
http://doc.otrs.org/2.1/en/html/x325.html#cronjobs
seem to be linux specific, we're using WindowsServer2003.
Is it as simple as editing var\cron\postmaster_pop3.dist to read
*/5 * * * * $HOME/bin/PostMasterPOP3.pl >> /dev/null
instead of
*/10 * * * * $HOME/bin/PostMasterPOP3.pl >> /dev/null
?
Is a restart of OTRS needed to initialize it?
Or do I need to set up a recurring job on the windows system itself?
Keith
_______________________________________________
OTRS mailing list: otrs - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/otrs
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/otrs
Support orr consulting for your OTRS system?
=> http://www.otrs.com/
--
Tobias Lütticke
Keith Turner
2007-01-11 14:53:45 UTC
Permalink
Thanks Tobias,

This seems to be working.

Keith



Hi Keith,

looking at <install-root>\OTRS_Restart.bat you find the command:

perl.exe <install-root>otrs\bin\Cron4Win32.pl

This re-reads "var\cron\postmaster_pop3.dist" and updates "CRONw\crontab.txt".
There you will find the updated value.

Restart of OTRS should not be necessary as the crontab.txt may be updated while
the cron service is running and it picks up any changes. At least
CRONw\README.txt says:

<quote>
The service will parse the crontab again if it the file modification time
changed since last parsing so feel free to alter the crontab while the
service is running.
</quote>

What I don't know is, how often the cron service checks the crontab.txt for
modifications. You may force by restarting cron only (without OTRS as a whole)
using the commands "net stop cron" and "net start cron".

So what you will have to do is:
* Update var\cron\postmaster_pop3.dist
* Call perl otrs\bin\Cron4Win32.pl
* (optional) "net [stop|start] cron"

That should do it.

HTH,
Tobias

Loading...