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