"Fossies" - the Fresh Open Source Software Archive

Member "mosshe/mosshe_hourly" (20 Jul 2015, 745 Bytes) of package /linux/privat/old/mosshe.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 # DebianUpdatesAvailable
    4 apt-get update > /dev/null  2> /dev/null
    5 apt-get -u upgrade --assume-no > /tmp/mosshe.DebianUpdatesAvailable.$$  2> /dev/null
    6 fgrep Abbruch /tmp/mosshe.DebianUpdatesAvailable.$$ > /tmp/mosshe.DebianUpdatesAvailable  2> /dev/null
    7 fgrep Abort /tmp/mosshe.DebianUpdatesAvailable.$$ >> /tmp/mosshe.DebianUpdatesAvailable  2> /dev/null
    8 rm /tmp/mosshe.DebianUpdatesAvailable.$$   2> /dev/null
    9 
   10 # FedoraUpdatesAvailable
   11 yum check-update | tail -n +2 > /tmp/mosshe.FedoraYumUpdatesAvailable  2> /dev/null
   12 
   13 # FedoraDnfUpdatesAvailable
   14 dnf check-update | tail -n +2 > /tmp/mosshe.FedoraDnfUpdatesAvailable  2> /dev/null
   15 
   16 # ArchlinuxUpdatesAvailable
   17 updatescheck > /tmp/mosshe.ArchlinuxUpdatesAvailable  2> /dev/null
   18