#! / bin / the bash
# task set time, interval The time interval, duration of the long duration
# may be performed at the console. / Timer. SH & placed in the background, generally temporary log
interval The = . 3
DURATION = ` expr 60 \ * 60 \ * 24- `
for ((i = 0 ; i <DURATION; i + = interval the)); do
# put here to perform tasks
echo " tongyishu " >> ./ timer.log
SLEEP $ interval the ;
DONE
Timing task script
Guess you like
Origin www.cnblogs.com/tongyishu/p/11682101.html
Recommended
Ranking