cron

Asked by Joe Soares

need a cron job to run

one of two ways

php -q /var/www/vhosts/clientdomain/domain/httpdocs/path to file/cron.php

or

GET http://www.domain.com/path to file/cron.php

would this work

crontab -e

*/30 * * * /path/to/cron.php

Question information

Language:
English Edit question
Status:
Answered
For:
Easy Hosting Control Panel for Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ehcpdeveloper (ehcpdeveloper) said :
#1

both way works, I think,

this way:
 */30 * * * php -q /var/www/vhosts/clientdomain/domain/httpdocs/path
to file/cron.php
or
 */30 * * * wget http://www.domain.com/path to file/cron.php

the first seems more logical, if you have console access.

On Thu, Nov 24, 2011 at 3:30 AM, Joe Soares
<email address hidden> wrote:
> New question #179814 on Easy Hosting Control Panel for Ubuntu:
> https://answers.launchpad.net/ehcp/+question/179814
>
> need a cron job to run
>
> one of two ways
>
> php -q /var/www/vhosts/clientdomain/domain/httpdocs/path to file/cron.php
>
> or
>
> GET http://www.domain.com/path to file/cron.php
>
> would this work
>
> crontab -e
>
> */30 * * * /path/to/cron.php
>
>
>
> --
> You received this question notification because you are an answer
> contact for Easy Hosting Control Panel for Ubuntu.
>

Revision history for this message
Joe Soares (onlinefreek) said :
#2

Thanks

Can you help with this problem?

Provide an answer of your own, or ask Joe Soares for more information if necessary.

To post a message you must log in.