Hallo Joachim,
danke für deine schnelle Antwort.
Den Fehler brachte er mir wegen dem "while TRUE" vor der tcpdump abfrage... nachdem ich an dem script schon so viel rumgespielt hatte und nicht mehr durchsteig hab ichs gelöscht.
Vmtl. ist es besser man fängt in dem fall bei 0 an.
Ich muss vorab sagen ich habe so gar keine Ahnung davon, aber eigentlich brauche ich aus dem Script nur den Teil intern oder?
server="
SERVERIP"
interface="eth0"
mac="
SERVERMAC"
#define search patterns for upnp and itunes
upnp="(dst 239.255.255.250 and dst port 1900 and proto 0x11 and udp[8:4]=0x4D2D5345 and udp[12:4]=0x41524348 and udp[0x50:4]=0x73657276)"
itunes="(dst 224.0.0.251 and dst port 5353 and proto 0x11 and (udp[10:1]&0x80=0) and (udp[4:2]>96))"
appletv=
KEINE AHNUNG WIE ICH DAS HIER FÜLLEN SOLLTE
#select one of the following
intern="$appletv"
#intern="$upnp"
#intern="$itunes"
#intern="$upnp or $itunes"
export LD_LIBRARY_PATH=/var/tmp
wakeup(){
ether-wake -b -i $interface $mac
ping -c 1 $server || cat $1 >>wolconnect.`date -I`.log
# cat $1 >>wolconnect.`date -I`.log
}
WOFÜR WIRD DAS GEBRAUCHT? (verständnishalber)
if [ "$intern" != "" ] ; then
WOBEI DAS HIER JA NICHT UNGLEICH SONDERN GLEICH SEIN SOLLTE ODER?
{
echo "intern = $intern"
while true; do
./tcpdump -lxs200 -tttt -ilan -c1 -f $intern >wolconnect.int
ether-wake -b -i $interface $mac
ping -c 1 $server || cat wolconnect.int >>wolconnect.`date -I`.log
done
} &
fi
Jaja lacht ruhig über den Anfänger