Implement hourly event in a server

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

    Implement hourly event in a server

    I have a server and I need to implement a automate process that occur at a
    certain interval, based on current time. I need to "tick" at every 10
    minutes or (another version) when time is 30 minutes after exact hour like
    in 1:30, 2:30...etc

    --
    Ceers,
    Crirus

    ------------------------------
    If work were a good thing, the boss would take it all from you

    ------------------------------


  • Jan Tielens

    #2
    Re: Implement hourly event in a server

    If you have a WindowsForms application you could drop a Timer component on
    your form. There is a interval property in which you can specify how much
    time goes by before the TimerTick event will happen.

    --
    Greetz,
    Jan
    _______________ _______________ ____
    Read my weblog: http://weblogs.asp.net/jan
    "Crirus" <Crirus@datagro up.ro> schreef in bericht
    news:uJWU739uDH A.4060@TK2MSFTN GP11.phx.gbl...[color=blue]
    > I have a server and I need to implement a automate process that occur at a
    > certain interval, based on current time. I need to "tick" at every 10
    > minutes or (another version) when time is 30 minutes after exact hour like
    > in 1:30, 2:30...etc
    >
    > --
    > Ceers,
    > Crirus
    >
    > ------------------------------
    > If work were a good thing, the boss would take it all from you
    >
    > ------------------------------
    >
    >[/color]


    Comment

    • Cor

      #3
      Re: Implement hourly event in a server

      Hi Crirus,

      I cannot imaging that a simple answer as have a look at system.timers.t imer
      would help when you do that you see than also the text about
      threading.timer s.

      But don't use the timer from the toolbox everybody get problems using that
      when it is for more than a simple solution and I never seen a simple
      solution with you. (that is system.forms.fo rm.timer)

      But you never knows if this was what you where looking for?

      :-)

      Cor
      [color=blue]
      > I have a server and I need to implement a automate process that occur at a
      > certain interval, based on current time. I need to "tick" at every 10
      > minutes or (another version) when time is 30 minutes after exact hour like
      > in 1:30, 2:30...etc[/color]


      Comment

      • Jan Tielens

        #4
        Re: Implement hourly event in a server

        Hi Crirus and Cor

        I'm sorry if my answer was a little bit too basic. :-(

        I agree with Cor, for advanced solutions...

        --
        Greetz,
        Jan
        _______________ _______________ ____
        Read my weblog: http://weblogs.asp.net/jan

        "Cor" <non@non.com> schreef in bericht
        news:%23H7t4h%2 3uDHA.3436@tk2m sftngp13.phx.gb l...[color=blue]
        > Hi Crirus,
        >
        > I cannot imaging that a simple answer as have a look at[/color]
        system.timers.t imer[color=blue]
        > would help when you do that you see than also the text about
        > threading.timer s.
        >
        > But don't use the timer from the toolbox everybody get problems using that
        > when it is for more than a simple solution and I never seen a simple
        > solution with you. (that is system.forms.fo rm.timer)
        >
        > But you never knows if this was what you where looking for?
        >
        > :-)
        >
        > Cor
        >[color=green]
        > > I have a server and I need to implement a automate process that occur at[/color][/color]
        a[color=blue][color=green]
        > > certain interval, based on current time. I need to "tick" at every 10
        > > minutes or (another version) when time is 30 minutes after exact hour[/color][/color]
        like[color=blue][color=green]
        > > in 1:30, 2:30...etc[/color]
        >
        >[/color]


        Comment

        • Cor

          #5
          Re: Implement hourly event in a server

          Hi Jan,

          No problem, but I have seen here what kind of solutions Crirus is making.

          In another situation it is probably the right answer because it is the most
          simple.

          Cor


          Comment

          • Cor

            #6
            Re: Implement hourly event in a server

            Hi Crirus,

            Just a change in the words from the text, I saw I have changed to much in
            the sentence

            I cannot image that a simple answer as: have a look at system.timers.t imer
            would help you. When you do that, you will see than also the text about
            threading.timer s.

            Cor


            Comment

            • One Handed Man [ OHM ]

              #7
              Re: Implement hourly event in a server

              Really, there is little difference between running a program on a
              workstation like Windows 2000 and a Server. I suggest that you consider
              running your program as a service, you can then set this to run as the
              system account. This way users will be able to log on and log off without
              terminating your program.

              Regards - OHM#
              =============== =========

              Jan Tielens wrote:[color=blue]
              > Hi Crirus and Cor
              >
              > I'm sorry if my answer was a little bit too basic. :-(
              >
              > I agree with Cor, for advanced solutions...
              >
              >
              > "Cor" <non@non.com> schreef in bericht
              > news:%23H7t4h%2 3uDHA.3436@tk2m sftngp13.phx.gb l...[color=green]
              >> Hi Crirus,
              >>
              >> I cannot imaging that a simple answer as have a look at
              >> system.timers.t imer would help when you do that you see than also
              >> the text about threading.timer s.
              >>
              >> But don't use the timer from the toolbox everybody get problems
              >> using that when it is for more than a simple solution and I never
              >> seen a simple solution with you. (that is system.forms.fo rm.timer)
              >>
              >> But you never knows if this was what you where looking for?
              >>
              >> :-)
              >>
              >> Cor
              >>[color=darkred]
              >>> I have a server and I need to implement a automate process that
              >>> occur at a certain interval, based on current time. I need to
              >>> "tick" at every 10 minutes or (another version) when time is 30
              >>> minutes after exact hour like in 1:30, 2:30...etc[/color][/color][/color]

              Best Regards - OHMBest Regards - OHM OneHandedMan@BT Internet.Com


              Comment

              • Herfried K. Wagner [MVP]

                #8
                Re: Implement hourly event in a server

                * "Crirus" <Crirus@datagro up.ro> scripsit:[color=blue]
                > I have a server and I need to implement a automate process that occur at a
                > certain interval, based on current time. I need to "tick" at every 10
                > minutes or (another version) when time is 30 minutes after exact hour like
                > in 1:30, 2:30...etc[/color]

                Why not have a look at the timer classes provided by the .NET Framework?

                'System.Threadi ng.Timer', 'System.Timers. Timer',
                'System.Windows .Forms.Timer' (not the best choice in your case).

                --
                Herfried K. Wagner [MVP]
                <http://www.mvps.org/dotnet>

                Comment

                Working...