Dear visitor, welcome to VDR Portal.
If this is your first visit here, please read the Help. It explains in detail how this page works.
To use all features of this page, you should consider registering.
Please use the registration form, to register here or read more information about the registration process.
If you are already registered, please login here.
Channel-IDś ermitteln: Fehler: function gensub never defined
Hi,
ich habe die im Wiki bechriebene awk Funktion versucht anzuwenden um die ChannelID's ausmeiner channels.conf zu ermitteln. Leider wirfts aber einen Fehler. Irgendjemand eine Idee??
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
awk -F : -f - /var/lib/vdr/channels.conf <<EOF >/tmp/tvm2vdr_channelmap.conf
{ name=gensub("[;,].*$","","g",\$1);
freq=\$2; parms=\$3; src=\$4
sid=\$10; nid=\$11; tid=\$12; rid=\$13
if (nid=="0" && tid=="0")
{
tid = freq
if (index(parms,"H")>0) tid += 100000
else if (index(parms,"V")>0) tid += 200000
else if (index(parms,"L")>0) tid += 300000
else if (index(parms,"R")>0) tid += 400000
}
if (rid!="0") sid=sid "-" rid
id=src "-" nid "-" tid "-" sid
print "???=" id "\t\t// " name
}
EOF
awk: -: line 17: function gensub never defined
|
Homepage
VDR II:
YeongYang A106, Fusi D1522, Celeron 2GHz, Frontend per DVB-s FF, 2xDVB-c, ATRIC-IR, YaVDR 0.3a
VDR III HDTV:
Inter-Tech 2008V mit iMonLCD, Atric, ASRock Extreme3 770 AM3, AMD Sempron 140 1x 2.70GHz AM3, 1,5TB WD15EADS, 2TB WD20EARS, 2x4GB DDR3-1600, NVidia 9500GT passiv, 3x DVB-c, YaVDR 0.4 @ Samsung PS-50B550
Könnte es sein, dass du nicht GNU awk benutzt? Probier mal gawk.
Gerald
OrigenAE S16T, ASRock K10N78D, Athlon II X2 4400e (unlocked Sempron 140), 2GB RAM, OCZ Vertex 30GB, 2xWD10EADS, 3xKNC One TV-Station DVB-C, G210 MSI N210-MD512H, yaVDR.
Seagate Dockstar, Debian Squeeze, VDR 1.7.16, 500 GB 2,5" HD, 2xSundtek MediaTV Home DVB-C/T.
gawk kennt der yavdr nicht.... ist ein yavdr 0.4 system.....
Ich weiß das ich dieses Codeschnipselchen aber schonmal benutzt hatte... wurde dieses im Wiki geändert? Oder warum läuft es jetzt nicht (mehr) ?
Homepage
VDR II:
YeongYang A106, Fusi D1522, Celeron 2GHz, Frontend per DVB-s FF, 2xDVB-c, ATRIC-IR, YaVDR 0.3a
VDR III HDTV:
Inter-Tech 2008V mit iMonLCD, Atric, ASRock Extreme3 770 AM3, AMD Sempron 140 1x 2.70GHz AM3, 1,5TB WD15EADS, 2TB WD20EARS, 2x4GB DDR3-1600, NVidia 9500GT passiv, 3x DVB-c, YaVDR 0.4 @ Samsung PS-50B550