Callmonitor: Telefonbuch exportieren

crusader

Mitglied
Mitglied seit
28 Okt 2004
Beiträge
425
Punkte für Reaktionen
0
Punkte
0
Nachdem meine Telefonliste in der debug.cfg nun kontinuierlich anschwillt (UPDATE=1), hab ich mir ein kleines skript geschrieben, welches die Telefonbucheinträge aus der debug.cfg im csv-Format auf einen PC sichert.

Code:
#!/bin/sh

contactfile=FBF-Kontakte.csv
#
cd /var/tmp
cat /var/flash/debug.cfg | grep "#MSISDN" | sed -e 's/^#MSISDN=//' -e 's/: /,/' > $contactfile

if [ $# -gt 0 ]
then
	IP=$1
else
	IP=192.168.178.20
fi

tftp -p -l $contactfile -r $contactfile $IP

rm $contactfile
cd

Kann man sich z.B. als backup.sh auf die Box laden und mit
./backup.sh <host-IP>
aufrufen.

crusader
 
Kostenlos!

Statistik des Forums

Themen
248,862
Beiträge
2,303,090
Mitglieder
378,515
Neuestes Mitglied
linnemann