Results 1 to 2 of 2
hi,
hi, i need a command in shell which can set the time limit for a script to run. meaning if i need to run a script in loop for ...
- 06-18-2007 #1Just Joined!
- Join Date
- Jun 2007
- Posts
- 2
Setting time limit for script to run
hi,
hi, i need a command in shell which can set the time limit for a script to run. meaning if i need to run a script in loop for two hours how can i do it? Actually for details it is a script to take data from tcpdump and put them into mysql. so i need time factor to set the running time for tcpdump.
- 06-18-2007 #2Linux Enthusiast
- Join Date
- Aug 2006
- Posts
- 631
Something like this (10 dumps in 2 hours):
I don't know how long it takes to make a dump, but you can vary the values of the seq and sleep commands.Code:for i in $(seq 10) do # dump sleep 12 done
Regards


Reply With Quote