Inhaltsverzeichnis

Verwaltung Informatiksaal Volksschule am Tabor

141-145 1. Stock
146-151 2. Stock
103 106

zypper in expect

ssh.sh

#!/usr/bin/expect
spawn /usr/bin/ssh -l root 192.168.1.204 "rm /var/lib/d4e/desktop-profil/.gnome2/session"
#expect "(yes/no)? " {send "yes\r" }
expect "word: " {send "open23\r" }
interact

admin.sh

#!/bin/sh
von=204
bis=226
 
export i=$von
while [[ $i -le $bis ]]
do
  export j=`expr $i + 1`
  echo $j
  cat ssh.sh | sed -e "s/$i/$j/g" > ssh2.sh
  rm ssh.sh
  mv ssh2.sh ssh.sh
  chmod 755 ssh.sh
  /root/ssh.sh
  export i=`expr $i + 1`
done
 
bispluseins=`expr $bis + 1`
cat ssh.sh | sed -e "s/$bispluseins/$von/g" > ssh2.sh
rm ssh.sh
mv ssh2.sh ssh.sh
chmod 755 ssh.sh

onehui.sh

#!/usr/bin/expect
spawn /usr/bin/sudo /usr/bin/usb_modeswitch
expect "word:" {send "open23\r" }
spawn /usr/bin/sudo /usr/bin/wvdial
expect "word:" {send "open23\r" }
interact

Internetverbindung.desktop

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=Internetverbindung
Type=Application
Terminal=false
Icon[de_DE]=gnome-panel-launcher
Exec=gnome-terminal --hide-menubar -x /usr/bin/onehui.sh
Name[de_DE]=Internetverbindung
Icon=/usr/share/pixmaps/blueradio-48.png
GenericName[de_DE]=