Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New Coder
    Join Date
    May 2009
    Location
    Bangalore
    Posts
    75
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question Problem in Crons

    Hi All,

    There is some problem occurring in calling the cron.
    */60 * * * * /usr/bin/lynx --dump "Path of the php script"

    On finding the path I found that in the path /usr/bin lynx is not present. Can anyone tell what I shd do to make my cronjob run successfully.

    Thanks in advance for any response ...

  • #2
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    this isn't a php question.


    if lynx doesn't exist, then install it,

    sudo apt-get install lynx

  • #3
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    Put the cron before the public_html directory. Go into your control panel and direct the link to it.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    Quote Originally Posted by angst View Post
    this isn't a php question.


    if lynx doesn't exist, then install it,

    sudo apt-get install lynx
    Definitely not. Moving from PHP forum to apache configuration forum.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 

  • #5
    120
    120 is offline
    Regular Coder
    Join Date
    Nov 2009
    Location
    UK
    Posts
    105
    Thanks
    6
    Thanked 15 Times in 15 Posts
    Don't look much like an Apache question either - try http://www.linuxquestions.org/questions/ instead

  • #6
    New Coder
    Join Date
    May 2009
    Location
    Bangalore
    Posts
    75
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Question

    Thank u all for ur responses ..

    I have one more problem in the crons. The problem is that after making the application accessed through https only the crons are now no more called. So can anyone tell that is there anything to be changed now incase https is used instead of http.

    The way I was calling previously :
    * * * * * /usr/bin/lynx --dump http://localhost/cron_test.php

    Now I am trying with
    * * * * * /usr/bin/lynx --dump https://localhost/cron_test.php

    but still the script is not called .


  •  

    Posting Permissions

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