how to write automaticly running script?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pawel_Iks

    how to write automaticly running script?

    How to write script which will be run automaticaly on server at some
    dates (for example on each monday at 5 pm)? Is it possible to do it?
  • Rik Wasmus

    #2
    Re: how to write automaticly running script?

    On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labedzki @gmail.com>
    wrote:
    How to write script which will be run automaticaly on server at some
    dates (for example on each monday at 5 pm)? Is it possible to do it?
    Just use a cron job, or if on Windows, schedule a task.
    --
    Rik Wasmus

    Comment

    • Pawel_Iks

      #3
      Re: how to write automaticly running script?

      On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
      On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed... @gmail.com>
      wrote:
      >
      How to write script which will be run automaticaly on server at some
      dates (for example on each monday at 5 pm)? Is it possible to do it?
      >
      Just use a cron job, or if on Windows, schedule a task.
      --
      Rik Wasmus
      but, I have my webpage on server and I don't know how to use this what
      you advise me from php code, could you give me any example?

      Comment

      • C. (http://symcbean.blogspot.com/)

        #4
        Re: how to write automaticly running script?

        On 14 Feb, 08:10, Pawel_Iks <pawel.labed... @gmail.comwrote :
        On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
        >
        On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed... @gmail.com>
        wrote:
        >
        How to write script which will be run automaticaly on server at some
        dates (for example on each monday at 5 pm)? Is it possible to do it?
        >
        Just use a cron job, or if on Windows, schedule a task.
        --
        Rik Wasmus
        >
        but, I have my webpage on server and I don't know how to use this what
        you advise me from php code, could you give me any example?
        If you don't have access to a CLI version of PHP then you'll need to
        trigger the script via the webserver.

        You can invoke a web page remotely from a scheduled job using (for
        example) wget which is available for Unix/Linux/MSWindows. So even if
        you don't have access to schedule a job on the server you could set up
        the job on any internet connected machine to trigger the request.

        RTFM for how to set up a scheduled job.

        C.

        Comment

        • Scott

          #5
          Re: how to write automaticly running script?

          This is an approach I have taken before.
          In my situation it was a script that would delete old database entries
          past a certain date, and since those updates are only needed prior to
          being viewed by a visitor, the first visitor for that day would trigger
          the script.
          Its not pretty, but its effective.

          Scotty
          C. (http://symcbean.blogspot.com/) wrote:
          On 14 Feb, 08:10, Pawel_Iks <pawel.labed... @gmail.comwrote :
          >On 13 Lut, 22:46, "Rik Wasmus" <luiheidsgoe... @hotmail.comwro te:
          >>
          >>On Wed, 13 Feb 2008 22:11:36 +0100, Pawel_Iks <pawel.labed... @gmail.com>
          >>wrote:
          >>>How to write script which will be run automaticaly on server at some
          >>>dates (for example on each monday at 5 pm)? Is it possible to do it?
          >>Just use a cron job, or if on Windows, schedule a task.
          >>--
          >>Rik Wasmus
          >but, I have my webpage on server and I don't know how to use this what
          >you advise me from php code, could you give me any example?
          >
          If you don't have access to a CLI version of PHP then you'll need to
          trigger the script via the webserver.
          >
          You can invoke a web page remotely from a scheduled job using (for
          example) wget which is available for Unix/Linux/MSWindows. So even if
          you don't have access to schedule a job on the server you could set up
          the job on any internet connected machine to trigger the request.
          >
          RTFM for how to set up a scheduled job.
          >
          C.

          Comment

          • Jeroen

            #6
            Re: how to write automaticly running script?

            On Feb 13, 10:11 pm, Pawel_Iks <pawel.labed... @gmail.comwrote :
            How to write script which will be run automaticaly on server at some
            dates (for example on each monday at 5 pm)? Is it possible to do it?
            On Unix/Linux/MacOS you might use launchd or cron, and run wget or
            curl at scheduled times

            Comment

            Working...