Announcement

Collapse
No announcement yet.

Cronjob Settings ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cronjob Settings ?

    Hi All.
    I need to run a cronjob once per day, which of the following commands supplied with my software should I use for Advanced (Unix Style)

    If you will be using wget, the line is:

    1 0 * * * /path/to/wget --spider -q 'http://www.yourdomain.com/rebuild.php?word=yoursecretword'


    If you will be using lynx, the line is:

    1 0 * * * /path/to/lynx -dump 'http://www.yourdomain.com/rebuild.php?word=yoursecretword' >/dev/nul


    If you will be using GET, the line is:

    1 0 * * * GET 'http://www.yourdomain.com/rebuild.php?word=yoursecretword'


    Thanks in advance.

  • #2
    Anyone know how to do this ?

    Comment


    • #3
      Yes, you can set and execute these crons daily from your cPanel >> cronjobs option. You will just need to use the correct path of binaries of wget, lynx and get.

      Cron you have mentioned in unix style "1 0 * * *" will execute at midnight at 12.01 everyday.

      Thanks,
      Brent
      WhUK-BrEnT

      Comment


      • #4
        Hmm yes sorted that I think.
        now I get an error
        /usr/bin/crontab permissions are wrong (6755). Please set to 4755.
        any ideas ?

        Comment


        • #5
          You need to change the crontab permissions by SSH to the server :

          [email protected] [~]# chmod 4755 /usr/bin/crontab

          Comment


          • #6
            Originally posted by PatrickP View Post
            You need to change the crontab permissions by SSH to the server :

            [email protected] [~]# chmod 4755 /usr/bin/crontab
            Right, however the command needs root access.

            Comment


            • #7
              Hi Rachel.
              Matthew from support has sorted it for me

              Comment


              • #8
                Originally posted by flegul View Post
                Hi Rachel.
                Matthew from support has sorted it for me
                Glad to know the problem is sorted out now. Have a good weekend

                Comment


                • #9
                  Using Lynx as an optimization tool

                  Lynx was one of the earliest Web browsers, in fact, for a period of time it was the only popular hypertext browser available. Initially it was mean't for UNIX, VMS only but gradually it was ported to Linux, DOS and finally Windows. It is a text-only browser, so when newer browsers supporting images arrived, Lynx lost much of its popularity.

                  However, Lynx still remains as one of the best tools for any need that requires webmasters to see how their webpages look in text mode including search engine optimization. Lynx is an important SEO tool since it allows the webmaster to view the website exactly as the search engine crawlers and bots do.

                  Lynx is a free and open source project which can be downloaded from

                  Eliza

                  Comment

                  Working...
                  X