 |
linux howto - fabio de lorenzo personal informations and experiences kernel modules and software
|
| View previous topic :: View next topic |
| Author |
Message |
root Site Admin
Joined: 27 Apr 2004 Posts: 156
|
Posted: Mon Apr 27, 2009 11:30 pm Post subject: Array |
|
|
#!/bin/bash
# Configure only the next two lines
SLEEP_TIME=5
aChannelList=( 530 223 226 246 602 303 328 329 383 387 389 257 311 333 357 404 603 698 230 264 271 317 353 )
function DT_CMD_WATCH {
dt watch -channel $1
}
function LOG {
DATE_str=`/bin/date "+%Y-%m-%d-%H.%M"`
echo "$DATE_str - $1"
}
numElement=${#aChannelList[@]}
while true
do
index=0
while [ "$index" -lt "$numElement" ]
do
LOG "$index ) channel: ${aChannelList[$index]}"
DT_CMD_WATCH ${aChannelList[$index]}
sleep $SLEEP_TIME
let "index = $index + 1"
done
done |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|