Welcome, Guest
Please Login or Register.
Lost Password?
Re:Scheduled cron jobs (1 viewing)
Post Reply

TOPIC: Re:Scheduled cron jobs

#13330
Maurizio1230 (User)
Posts: 48
graphgraph
Scheduled cron jobs 2008/06/03 08:01  
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

Post edited by: Maurizio1230, at: 2008/06/03 08:03
  The administrator has disabled public write access.
#13335
ronald (User)
Posts: 398
graphgraph
Re:Scheduled cron jobs 2008/06/03 08:16  
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.
  The administrator has disabled public write access.
#13345
Joe (Admin)
Posts: 3779
graph
Re:Scheduled cron jobs 2008/06/03 09:36  
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.com/Webmin/ScheduledCommands
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.