SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Cron problem

  1. #1
    Non-Member
    Join Date
    Apr 2000
    Location
    Waco, Texas.
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have a cronjob that use to work perfectly until recently.
    0 */2 * * * lynx -dump http://www.url.com/script.php

    It used to run every two hours, and executed the script, but lately I have gotten the error "Your terminal lacks the ability to clear the screen or position the cursor.". Now, if I telnet to the server and manually type
    lynx -dump http://www.url.com/script.php it works fine.

    Any ideas what could be wrong?
    Thanks

  2. #2
    SitePoint Wizard silver trophy Karl's Avatar
    Join Date
    Jul 1999
    Location
    Derbyshire, UK
    Posts
    4,411
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's an odd one. Have you tried running the script from the command line? as in php script.php rather than through the web server.

    You could try:

    0 */2 * * * php script.php > output.txt

    which would dump the output of the script to output.txt.
    Karl Austin :: Profile :: KDA Web Services Ltd.
    Business Web Hosting :: Managed Dedicated Hosting
    Call 0800 542 9764 today and ask how we can help your business grow.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •