Feature requests » Cron

added on Aug 29, 2006 by BuZzz
Hi there,

how can i set cronjobs? Where do i have to point my cronjob to?

I have enabled the cron check in de setting but can i set an cronjob at my server like this:

/usr/local/bin/php -q /home/mysite/domains/mydomain/public_html/linkex/index.php
added on Aug 29, 2006 by v0id
Hey there.

For now I do not have any documentation on this, but check out this thread:
http://linkex.dk/forums/t162-external-access-to-verify-links.html

I haven't made an option to use the script from "commandline", but it's on the list. I would be nice to enable
a cron like you mentioned.

- v0id
added on Aug 29, 2006 by BuZzz
mmm wget is disabled at my server and the others i don't now what that is.
added on Aug 29, 2006 by v0id
Hm ok. I'll make a new version as soon as possible, which can do the commandline thing :)

Hopefully I'll get it done tomorrow morning. I'll let you know

- v0id
added on Aug 30, 2006 by BuZzz
That would be great, i will check it tomorrow ;-) thnx for the support
added on Aug 30, 2006 by v0id
New version out. You can now make a cron like the one you mentioned.

Let me know how it works out :)

- v0id
added on Aug 30, 2006 by BuZzz
Hi there V0id,

i have upgraded the script and tested 2 crontabs:

/usr/local/bin/php -q /home/mysite/domains/mydomain/public_html/linkex/index.php

AND

/usr/local/bin/php -q
/home/mysite/domains/mydomain/public_html/linkex/index.php?page=check&passphrase=[my_passphrase from the settings]

This isn't working how can i set it up to work.
added on Aug 30, 2006 by v0id
Hey there.

The first one shuld suffice.

What is the output from that first crontab?
added on Aug 30, 2006 by BuZzz
where can i see the output????

I have runned a crontab every minute to check if non reciprocal trades where disabled but nothing happend.
added on Aug 31, 2006 by v0id
There is only a simple output when the script is done.
Once every minute is way to much. Please remember that it takes at leat one second to fetch the page and analyze it.

Before running the script manually, please goto the admin, and sort the list by "Verified". Notice when the
links was last verified. Now start running the script, and keep and eye on the "Verified" field.

The "Verified" fields should turn into "n seconds ago" etc. etc.

Let me know how it works out
added on Aug 31, 2006 by BuZzz
Yes i have done that. I only set the cron to */1 * * * * once every minute to check if i see results. otherwise i must
wait to long to see if it is working. I have checked the last verified but it isn't working. When the cron works i just
let him check it once a week.

here is the cron i used i have set it every 20 minutes this time:

*/20 * * * * /usr/local/bin/php -q /home/mysite/domains/mydomain/public_html/linkex/index.php

added on Sep 3, 2006 by v0id
Hey again

I'll make a new release which has a verbose commandline switch. Then we should be able to debug the commandline option
better.

On the hosting accounts I have on 3 different companies, I could make it work. So perhaps you have some special setup,
or a more restrictive php.ini perhaps?

I'll post when the new release is ready for you :)

- v0id
added on Sep 4, 2006 by v0id
Hi there.

I have made a new release, where you can use a -v switch to make LinkEX write what it's doing :)

Try this from your shell:
/usr/local/bin/php index.php -v

and let me know how it works out :)

- v0id
added on Sep 7, 2006 by BuZzz
strainge it isn't working for me, is there someone else who has this cronjob working???
added on Sep 7, 2006 by v0id
I'm sad to head that.

Could I please ask you to do the follwoing commands in the shell, and let me know what the output is:

# uname -a
and
# php -v

Thanks

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.