Code

Auf der TeleKletterWand programmierte Codes

killallJavaARS.sh
#!/bin/bash
killall java ARS	  
figletFOK.sh
figlet -d /usr/share/figlet -f   smkeyboard fok schsen 
endlosSchlaufe.sh
#!/bin/bash
while [ 1 ] ; do 
echo forever;
sleep 1
done	  
diskTest.sh
#!/bin/bash
echo $(uname -n -r)
echo -e " Dateisystem Belegung(%) Zustand "
for FILESYSTEM in $(df -h | grep '^/'|grep -v 'none'|cut -d' ' -f 1); do
BELEGUNG=`df | grep "$FILESYSTEM" | awk '{print $5;}'`
BELEGUNG=${BELEGUNG%%%}
printf "%-20s %-5s" $FILESYSTEM $BELEGUNG
NAME=${FILESYSTEM## *}
if [ $BELEGUNG -gt 90 ] ; then
echo "=== CRITICAL ==="
elif [ $BELEGUNG -gt 75 ] ; then
echo "=== WARNING ==="
else
echo "ok"
fi
done	  
mp3.sh
#!/bin/bash
cat mp3.sh | lame -r -x -m m -b 128 -s 44.1 - illegal.mp3	  
rechnerMitPingUeberwachen.sh
#!/bin/bash
while ping 195.176.254.164; do
	sleep 1
done
echo "Alarm!"	  
illegalIfStatement.sh
#!/bin/bash
if `test \`echo "1274097 % 10" |bc\`=7`;
	then echo This is patented!; 
fi
fortschrittsbalken.sh
#!/bin/bash 
echo -n $'__________\r' 
for ((i = 0; i < 10; i++)); do 
    echo -n "#" 
    sleep 1 
done 
echo
dateiFindenAnhand2Kriterien.sh
#!/bin/bash
find -name .bashrc -user ars
pythonMail.py
#!/usr/bin/python
import smtplib msg="Subject: Code\n Ars03 Catalogue Gift" s=smtplib.SMTP('mail.ufg.ac.at') 
s.sendmail("gerfried.stocker@aec.at","mailinglist@luxus4all.org",msg) print 
msg+"\n....send...." s.quit()