By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,822 Members | 1,008 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,822 IT Pros & Developers. It's quick & easy.

time script

P: 53
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
Dec 5 '07 #1
Share this Question
Share on Google+
2 Replies

sicarie
Expert Mod 2.5K+
P: 4,677
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)
Dec 5 '07 #2

P: 53
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
Dec 11 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.