Computing.Net > Forums > Programming > how to use time function

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

how to use time function

Reply to Message Icon

Name: quadoss
Date: June 21, 2006 at 23:38:05 Pacific
OS: Linux
CPU/Ram: 128 mb ram
Product: dell laptop
Comment:

Hi,
im a newbie in shell scripting and i have a requirement where in every 20 min till the target time i need to execute a command.

how do i do it????
please help and thanks in advance...


Mahesh



Sponsored Link
Ads by Google

Response Number 1
Name: Shr0Om
Date: June 22, 2006 at 01:56:29 Pacific
Reply:

Batch scripts doesnt support any real timing functions, so its not preferable for this. But perhaps there are other scripts more suitable for this (which also can run as a shell script). Unfortunately i dont know any, but perhaps someone else does.


0

Response Number 2
Name: ghostdog
Date: June 22, 2006 at 04:38:11 Pacific
Reply:

you can just do your shell script, then use the crontab to schedule to run your script every 20min till your target time.


0

Response Number 3
Name: Shr0Om
Date: June 22, 2006 at 04:41:47 Pacific
Reply:

Oops.. Didnt noticed you are running Linux.
What Ghostdog suggested should work well


0

Response Number 4
Name: quadoss
Date: June 22, 2006 at 06:27:12 Pacific
Reply:

thanks you all, the crontab did work fine and i was able to finish the script which i wanted.

Thanks once again..!!!:-)

Mahesh


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: how to use time function

How to use Switch statement in vb www.computing.net/answers/programming/how-to-use-switch-statement-in-vb/6687.html

How to use string array in C++? www.computing.net/answers/programming/how-to-use-string-array-in-c/9478.html

how to use LPT1 as comunication www.computing.net/answers/programming/how-to-use-lpt1-as-comunication/4476.html