+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Cron ???

  1. #1
    serg5550's Avatar
    serg5550 is offline x10Hosting Member serg5550 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    21

    Question Cron ???

    Hello!

    Tell, please, the command for performance script.php on a server.

    And as:
    As not all PHP-programs can work through CLI SAPI without preliminary updating, it is possible to start them through wget.
    How to start them through wget?

    For example I should execute the scenario during certain time:
    http://mysite.com/administrator/inde...ent&act=manual (mysite.com - site for an example)
    Tried to write in the beginning "wget --spider ", time has set 5 for the test, - does not work.

    Help, please!

    Thanks!
    Last edited by serg5550; 02-24-2010 at 05:11 AM.

  2. #2
    Zubair's Avatar
    Zubair is offline x10 Super Spammer Zubair has a reputation beyond reputeZubair has a reputation beyond reputeZubair has a reputation beyond repute
    Join Date
    Jul 2009
    Location
    Pakistan
    Posts
    8,743

    Re: Cron ???

    Quote Originally Posted by serg5550 View Post
    Hello!

    Tell, please, the command for performance script.php on a server.

    And as:
    As not all PHP-programs can work through CLI SAPI without preliminary updating, it is possible to start them through wget.
    How to start them through wget?

    For example I should execute the scenario during certain time:
    http://mysite.com/administrator/inde...ent&act=manual (mysite.com - site for an example)
    Tried to write in the beginning "wget --spider ", time has set 5 for the test, - does not work.

    Help, please!

    Thanks!
    See this HOWTO: Auto-backup database | transfer database (with pics)

    This might be helpful for you
    Zubair Barkat | Level 2 Tech
    █ 888-X10-9668 - zubair[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004

  3. #3
    serg5550's Avatar
    serg5550 is offline x10Hosting Member serg5550 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    21

    Re: Cron ???

    Thanks!
    I will try.

  4. #4
    serg5550's Avatar
    serg5550 is offline x10Hosting Member serg5550 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    21

    Re: Cron ???

    Cron does not work.

    Here the real link for scenario performance (100 % work at start in a browser):
    http://allmsfo.ru/administrator/inde...ent&act=manual

    I tried different starts of the scenario, - does not work:

    */5 * * * * wget -q http://allmsfo.ru/administrator/inde...ent&act=manual
    */5 * * * * wget -O - http://allmsfo.ru/administrator/inde...ent&act=manual
    */5 * * * * wget -q -O - http://allmsfo.ru/administrator/inde...ent&act=manual
    */5 * * * * wget -O - -q http://allmsfo.ru/administrator/inde...ent&act=manual

    There are no notices on email.
    At me a free hosting, - a problem in it?
    Explain, please.
    Last edited by serg5550; 02-26-2010 at 12:39 PM.

  5. #5
    misson is offline Community Advocate misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,391

    Re: Cron ???

    You mean you can't get your cron jobs to work, which is different from cron not working.

    "&" is a special character in shells. Try enclosing the URLs in single quotes.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    serg5550's Avatar
    serg5550 is offline x10Hosting Member serg5550 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    21

    Re: Cron ???

    I tried to start other scenarios (my cron - allmsfo.ru27022010064438000000.php):

    wget -q http://allmsfo.ru/components/com_rss...4438000000.php

    php -q /home/serg5550/public_html/allmsfo.ru/components/com_rss2content/cron/allmsfo.ru27022010064438000000.php

    /usr/bin/php -q /home/serg5550/public_html/allmsfo.ru/components/com_rss2content/cron/allmsfo.ru27022010064438000000.php

    Cron does not work. Attribute at cron "777".

    There are no notices on email. In error_log.txt is written:

    PHP Fatal error: Call to a member function setQuery() on a non-object in /home/serg5550/public_html/allmsfo.ru/components/com_rss2content/cron/allmsfo.ru27022010064438000000.php on line 1027

    What is it means?
    I so think, that on a server there is an interdiction.
    Last edited by serg5550; 02-27-2010 at 02:07 PM.

  7. #7
    misson is offline Community Advocate misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,391

    Re: Cron ???

    It means your script isn't handling errors. You've got a line like $db->setQuery(...), but $db isn't an object because the line that was supposed to create an object failed. Always handle errors, whether it means catching exceptions or checking return values.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  8. #8
    serg5550's Avatar
    serg5550 is offline x10Hosting Member serg5550 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    21

    Re: Cron ???

    Thanks!
    I will search for the reason.
    Last edited by serg5550; 02-28-2010 at 04:03 AM.

  9. #9
    serg5550's Avatar
    serg5550 is offline x10Hosting Member serg5550 is an unknown quantity at this point
    Join Date
    Sep 2009
    Posts
    21

    Re: Cron ???

    Hello!

    I have solved my problem.

    Thanks Boss and misson!

    Please, remove my Thread (real links to my site here are located).

  10. #10
    092565 is offline x10Hosting Member 092565 is an unknown quantity at this point
    Join Date
    Oct 2009
    Posts
    20

    Re: Cron ???

    It's best to not delete this thread, and secondly, would you mind telling me how you solved the problem ?

    Thanks

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. cron problem - scripts not executing
    By arman103 in forum Free Hosting
    Replies: 7
    Last Post: 01-31-2010, 04:39 PM
  2. [Suggestion] Add a cron test facility
    By ah-blabla in forum Feedback and Suggestions
    Replies: 0
    Last Post: 10-18-2009, 09:53 AM
  3. Cron job problem still...
    By woodyl in forum Free Hosting
    Replies: 1
    Last Post: 04-16-2009, 03:31 AM
  4. CRON Jobs and PHP
    By deadimp in forum Tutorials
    Replies: 14
    Last Post: 11-27-2008, 06:09 PM
  5. Cron Tutorial (Crontab Tutorial)
    By sunils in forum Tutorials
    Replies: 3
    Last Post: 06-14-2008, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers