2 ################################################################################
4 # File: monitor_taskbroker
5 # Description: Quick script to monitor the taskbroker/build pool
6 # Author: Andrew DeFaria (defaria@cup.hp.com)
10 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
12 ################################################################################
15 integer day_of_week=$(date +%w)
16 integer sleep_time=5*60
18 talktotaskbroker=/usr/eclipse/etc/talktotaskbroker
19 logfile=/tmp/taskbroker$day_of_week.log
23 $talktotaskbroker mstatus
30 if [ $day_of_week -ne $(date +%w) ]; then
31 day_of_week=$(date +%w)
33 logfile=/tmp/taskbroker$day_of_week.log
34 print "Continuing in $logfile..." >> $logfile_old
37 get_status >> $logfile