Joomla!ŪPlug

. XCloner - Backup and Restore Component

OOPS. Your Flash player is missing or outdated.Click here to update your player so you can see this content.
Joomla backup and restore component

XCloner for Wordpress new!

 
 
JoomlaPlug.com
Welcome, Guest
Please Login or Register.    Lost Password?
schedule a PHP script (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: schedule a PHP script
#5625
manou (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
schedule a PHP script 3 Years ago  
Hello,

Congratulation for JCron, it is a nice component. Let's see if I can use to my needs.

I need to execute a PHP script every minute.

I was using my server side crontab like this:
* * * * * wget -O - -q -t 1 'http://amimusa.net/myScript.php' > /dev/null

At the production server I can't access to console so i find JCron the thing I need.

I set a new Job like:
Type: Web Address (fopen)
Command to Run: http://amimusa.net/myScript.php
Checked published mark

But the script is not executed.

What am I missing or setting wrong?

Thank you so much for your time.

May all being be happy
OM SHANTI SHANTI SHANTI OM
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5626
admin (Admin)
Admin
Posts: 2927
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:schedule a PHP script 3 Years ago  
JCron depends on your site frontend to be active and since you want to use the Web address type then you also need to have allow_url_fopen variable set to On in your site php.ini config, otherwise it would be better to use the fsockopen option

Regards, Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5627
manou (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:schedule a PHP script 3 Years ago  
Hi Ovidiu,

Thanks for your quick replay.

I've changed to fsockopen Type, but the command is not executed yet and no logs received.

I paste jos_jcron_tasks content
+----+--------------+------+-----------+-----------+-------------------------------------------------------------------------------------+---------------------+----+----------+
| id | task | type | published | mhdmd | file | ran_at | ok | log_text |
+----+--------------+------+-----------+-----------+-------------------------------------------------------------------------------------+---------------------+----+----------+
| 1 | Handler | 2 | 1 | * * * * * | http://amimusa.net/uriToMyPHPScript | 2009-01-14 16:46:42 | 1 | DONE |
+----+--------------+------+-----------+-----------+-------------------------------------------------------------------------------------+---------------------+----+----------+

Also I don't understand well when you say that JCron depends on my site frontend.

I will appreciate your help.

Regards,
·_- manou
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5628
admin (Admin)
Admin
Posts: 2927
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:schedule a PHP script 3 Years ago  
In order for the cron to run you need to have frontend activity on your site to trigger the cron process


Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5629
manou (User)
Fresh Boarder
Posts: 5
graphgraph
User Offline Click here to see the profile of this user
Re:schedule a PHP script 3 Years ago  
... if I play at the site frontend it is executed, but then ... I am not sure I will get what I need since I can't ensure the site frontend will have requests every minute ...

could you clarify it for me, please ?

thank you so much for your time,
·_- manou
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#5630
admin (Admin)
Admin
Posts: 2927
graph
User Online Now Click here to see the profile of this user
joomlaplug JoomlaPlug.com
Re:schedule a PHP script 3 Years ago  
JCron has it's limitations, this being one of them, i would advise looking for a server based tool to fit your needs

Ovidiu
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Search JoomlaPlug.com

All rights reserved to JoomlaPlug.com ©2006-2012!

The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries.
JoomlaPlug.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.