Scheduled cron jobs

3 posts / 0 new
Last post
#1 Tue, 06/03/2008 - 08:01
Maurizio1230

Scheduled cron jobs

You will need to schedule 4 files to run. master_cron.php every 15 or 10 minutes invoice_cron.php once per day updateexp.php once per day updtransfers.php once per day The files are located in the tools directory. In most cases your command will look like this: */15 * * * * php -q -f /your/path/to/awbs/tools/master_cron.php (Substitute your correct path in the above example.) This would run the master_cron.php file every 15 minutes. Another example: 10 5 * * * php -q -f /your/path/to/awbs/tools/invoice_cron.php This would run invoice_cron.php file each day at 5:10am.

I go on Scheduled Cron Jobs and I create a cron. Have I to insert php in the command field and -q -f /your/path/to/awbs/tools/invoice_cron.php in the imput to command field?

Sorry if you think this question is silly :( Thank you very much<br><br>Post edited by: Maurizio1230, at: 2008/06/03 08:03

Tue, 06/03/2008 - 08:16
ronald
ronald's picture

if you think that question is silly, wait till you hear my answer
lol no just kidding.

according to their examples this would be the case yes.
At least I would do it like that and see if it works.

Tue, 06/03/2008 - 09:36
Joe
Joe's picture
Have I to insert php in the command field and -q -f /your/path/to/awbs/tools/invoice_cron.php in the imput to command field?

No. "Input to command" is something to be piped into the command...your command is the whole thing. e.g.:

Command: php -q -f /your/path/to/awbs/tools/master_cron.php

And the input field should be empty, as there is nothing to pipe into the command. The input field is usually used for email text or some other bunch of text to inject into a particular command.

See the Webmin docs:

http://doxfer.webmin.com/Webmin/ScheduledCommands

--

Check out the forum guidelines!

Topic locked