ich hab gerade bei sat universe was entdeckt:
Code: Alles auswählen
#!/bin/sh
# bulsat
wget -a log.txt -O web.list http://en.kingofsat.net/pack-bulsatcom.php
awk -F '>' 'BEGIN {chan = "invalid"}
/WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
/class="s"/ {sid = substr($2,1,length($2) - 2)
if (chan == "invalid") next
printf "5581,5501,0604:%x|bulsat %s\n", sid , chan
chan = "invalid"}' web.list > oscam.bul
awk -F '>' 'BEGIN {chan = "invalid"}
/WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
/class="s"/ {sid = substr($2,1,length($2) - 2)
if (chan == "invalid") next
printf "5581:000000:%x: \"bul-cry %s\"\n", sid , chan
printf "5501:000000:%x: \"bul-gri %s\"\n", sid , chan
printf "0604:000000:%x: \"bul-ird %s\"\n", sid , chan
chan = "invalid"}' web.list > cccam.bul
# satellite bg
wget -a log.txt -O web.list http://en.kingofsat.net/pack-satellitebg.php
awk -F '>' 'BEGIN {chan = "invalid"}
/WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
/class="s"/ {sid = substr($2,1,length($2) - 2)
if (chan == "invalid") next
printf "0D06,0B01:%x|satbg %s\n", sid , chan
chan = "invalid"}' web.list > oscam.satbg
awk -F '>' 'BEGIN {chan = "invalid"}
/WIDTH="15%"/ {chan = substr($3,1,length($3) - 3)}
/class="s"/ {sid = substr($2,1,length($2) - 2)
if (chan == "invalid") next
printf "0d06:000000:%x: \"satbg-cry %s\"\n", sid , chan
printf "0d06:0000C0:%x: \"satbg-cry1 %s\"\n", sid , chan
printf "0B01:000000:%x: \"satbg-con %s\"\n", sid , chan
chan = "invalid"}' web.list > cccam.satbg
rm -f oscam.srvid
cat oscam.* > oscam.srvid
rm -f Cccam.channelinfo
cat cccam.* > Cccam.channelinfo
exit 0
Wäre das was für dich feiss um es ins IPC einzubinden?