hourly ?

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

    hourly ?

    Is it possible to make a script that will run every hour ?
    If not with PHP is this possible with perl ?

    I ask this cause im doing a online game and i need to run a script every
    hour or close to it, i currently use a fonction that runs every time someone
    logs to one of the pages, it checks the times and acts in fonction, its not
    a problem how i did it but if could make it user independant it would be
    better.

    BTW if anyone has made a online game that needed this kind of thing too, how
    did you proceed ?

    My server allows this scripts
    Scripts
    - CGI folder
    - PHP4, Perl, C, Python, KSH, CSH
    CSH und Unix SH
    - Perl-Script-Checker


  • Tom Thackrey

    #2
    Re: hourly ?


    On 27-Feb-2004, "Marco" <mpgtlatbluewin dotch> wrote:
    [color=blue]
    > Is it possible to make a script that will run every hour ?
    > If not with PHP is this possible with perl ?
    >
    > I ask this cause im doing a online game and i need to run a script every
    > hour or close to it, i currently use a fonction that runs every time
    > someone
    > logs to one of the pages, it checks the times and acts in fonction, its
    > not
    > a problem how i did it but if could make it user independant it would be
    > better.
    >
    > BTW if anyone has made a online game that needed this kind of thing too,
    > how
    > did you proceed ?
    >
    > My server allows this scripts
    > Scripts
    > - CGI folder
    > - PHP4, Perl, C, Python, KSH, CSH
    > CSH und Unix SH
    > - Perl-Script-Checker[/color]

    Sounds like Unix/Linux, setup a crontab entry to run the script every hour.

    --
    Tom Thackrey

    tom (at) creative (dash) light (dot) com
    do NOT send email to jamesbutler@wil lglen.net (it's reserved for spammers)

    Comment

    • B. Johannessen

      #3
      Re: hourly ?

      -----BEGIN PGP SIGNED MESSAGE-----
      Hash: SHA1

      Marco wrote:[color=blue]
      > Is it possible to make a script that will run every hour ?
      > If not with PHP is this possible with perl ?[/color]

      What you are looking for is cron. Login to your server using
      SSH and do a "man cron" and "man crontab" (without quotes)


      Bob




      -----BEGIN PGP SIGNATURE-----
      Comment: B. Johannessen <bob@db.org> - http://db.org/contact/en/

      iD8DBQFAQBCcooi sUyMOFlgRAiCYAJ 942JcyQs+g8DxJg ta0iI2Zn1uWVwCZ AcIU
      J7/AVRR/KStp5nblwo4L6sw =
      =MEYK
      -----END PGP SIGNATURE-----

      Comment

      • Marco

        #4
        Re: hourly ?


        "B. Johannessen" <bob@db.org> wrote in message
        news:wgU%b.7078 $rj4.95853@news 2.e.nsc.no...[color=blue]
        > -----BEGIN PGP SIGNED MESSAGE-----
        > Hash: SHA1
        >
        > Marco wrote:[color=green]
        > > Is it possible to make a script that will run every hour ?
        > > If not with PHP is this possible with perl ?[/color]
        >
        > What you are looking for is cron. Login to your server using
        > SSH and do a "man cron" and "man crontab" (without quotes)
        >
        >
        > Bob
        >
        >
        >
        >
        > -----BEGIN PGP SIGNATURE-----
        > Comment: B. Johannessen <bob@db.org> - http://db.org/contact/en/
        >
        > iD8DBQFAQBCcooi sUyMOFlgRAiCYAJ 942JcyQs+g8DxJg ta0iI2Zn1uWVwCZ AcIU
        > J7/AVRR/KStp5nblwo4L6sw =
        > =MEYK
        > -----END PGP SIGNATURE-----[/color]

        Any site where they explain on how to do it ?


        Comment

        • B. Johannessen

          #5
          Re: hourly ?

          -----BEGIN PGP SIGNED MESSAGE-----
          Hash: SHA1

          Marco wrote:[color=blue]
          > "B. Johannessen" <bob@db.org> wrote in message[color=green]
          >> Marco wrote:
          >>[color=darkred]
          >>> Is it possible to make a script that will run every hour ?
          >>> If not with PHP is this possible with perl ?
          >>>[/color]
          >> What you are looking for is cron. Login to your server using
          >> SSH and do a "man cron" and "man crontab" (without quotes)
          >>[/color]
          > Any site where they explain on how to do it ?[/color]

          The "man cron" and "man crontab" manual pages should be a good
          start. If not, how about:



          Anyway, this has nothing to do with PHP as such, so if you want
          help understanding how cron works it's probably better to ask in
          an appropriate unix group.


          Bob



          -----BEGIN PGP SIGNATURE-----
          Comment: B. Johannessen <bob@db.org> - http://db.org/contact/en/

          iD8DBQFAQJHDooi sUyMOFlgRAkcUAK CiPNK64OtQd8V7h TA/+01zxZ5hcACeLjs A
          JEL/KNUqkrw9uipH9+2 talM=
          =+Z/z
          -----END PGP SIGNATURE-----

          Comment

          Working...