[prev in list] [next in list] [prev in thread] [next in thread] 

List:       garnome-list
Subject:    The build Watchdog script
From:       "Lucas Mazzardo Veloso" <lmveloso () din ! uem ! br>
Date:       2007-01-25 19:45:45
Message-ID: 1040.201.15.55.33.1169754345.squirrel () webmail ! din ! uem ! br
[Download RAW message or body]

Hi fellows,

I'm sendding you a little convenience script to watch out a garnome build,
recording the messages to file and 'b-e-e-p'ing on success or failure!

It's usage is really simple, just put it in front of the command you want
to watch out. For example, use './watchdog.sh make garchive' instead of
'make garchive'.

Feel free to use/improve it and also to point me out any issue.

Cheers,
Lucas




-----------------------------------------
DIN - WebMail.
http://www.din.uem.br/
["watchdog.sh" (application/x-shellscript)]

#!/bin/bash
#
# Script by Lucas Mazzardo Veloso (lmveloso at din uem br)
#
# Example usage:
#        ./watchdog.sh make parnoid-install
#
# If you want to see the output run:
#       tail -f $LOG_FILE
#
# Dependency:
#       It uses the 'beep' utility to ... Beep!

LOG_FILE=garnome-build.log

ERROR_COMMAND="beep -l 50 -n -f 370 -l 50 -n -f 523.2 -l 50 -n -f 662.3 -l 50 -n -f \
937 -l 50 -n -f 349.2 -l 50 -n -f 493.9 -l 50 -n -f 587.3 -l 50 -n -f 884.4 -l 50 -n \
-f 329.6 -l 50 -n -f 466.2 -l 50 -n -f 554.3 -l 50 -n -f 834.7 -l 150"

SUCCESS_COMMAND="beep -f 261.6 -n -f 329.6 -l 100 -n -f 392 -l 150 -n -f 523.2 -l 300 \
-n -f 392 -l 200 -n -f 523.2 -l 300"

echo
echo Running   : $1 $2
echo Start time: `date`
$1 $2 > $LOG_FILE 2>&1 && (echo Success : `date`; `$SUCCESS_COMMAND` ) || (echo ERROR \
: `date`; `$ERROR_COMMAND` )



-- 
garnome-list mailing list
garnome-list@gnome.org
http://mail.gnome.org/mailman/listinfo/garnome-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic