10 #zenity --notification --text "$1" 2> /dev/null
11 notify-send --expire-time=$expireTime "$1"
17 zenity --question --text "$question" --width=300 2> /dev/null
22 for system in $systems; do
23 notify "Checking $system for updates"
24 ssh $system sudo apt-get -qq update
25 ssh $system apt list --upgradeable 2> /dev/null | grep -v "^Listing" > /tmp/check4update.list
27 if [ $(wc -l /tmp/check4update.list 2> /dev/null | cut -f1 -d' ') -ne 0 ]; then
28 cat /tmp/check4update.list
30 if yesno "There are updates for $system\nApply them now?" ]; then
31 ssh $system sudo /opt/clearscm/bin/update-system
33 notify "$system not updated"
36 notify "$system is up to date"
39 rm -f /tmp/check4update.list