The build Watchdog script
"Lucas Mazzardo Veloso" <[email protected]>
| Newsgroups | gmane.comp.gnome.garnome |
|---|---|
| Message-ID | <[email protected]> |
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/ -- garnome-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/garnome-list
watchdog.sh
(application/x-shellscript, 828 B)
#!/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` )