time script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cdm2883
    New Member
    • Sep 2007
    • 53

    time script

    im having trouble makin the script to display the time every 15 secodns, im tryin to use the %r field descriptor. and im trying to clear the first time using the clear command. I would send what i had but my computer cut off so i couldnt save it


    Thanks
    David
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    What do you mean "you are trying to clear the first time"? Why not just overwrite it with the current time, then you don't have to worry about it.

    Why do you want a script to run every 15 seconds? You do know that if you are building this as a simple program or script (without using an interrupt or low-level OS functions), that it's going to be incredibly inefficient and will also impact the performance of the machine? What are you trying to do (the final version, not with the time command - give us the big picture. There's probably (probably) an easy way to do it)

    Comment

    • cdm2883
      New Member
      • Sep 2007
      • 53

      #3
      Originally posted by sicarie
      What do you mean "you are trying to clear the first time"? Why not just overwrite it with the current time, then you don't have to worry about it.

      Why do you want a script to run every 15 seconds? You do know that if you are building this as a simple program or script (without using an interrupt or low-level OS functions), that it's going to be incredibly inefficient and will also impact the performance of the machine? What are you trying to do (the final version, not with the time command - give us the big picture. There's probably (probably) an easy way to do it)

      I could just over write it, or clear it.

      But it is just a simple script that is suppose to just show the time using %r field decriptor. Im putting it on anything big just to show the time.

      thanks

      Comment

      Working...