2012-10-04, 06:41
(2012-10-01, 21:46)adamsutton Wrote: curl XMLTV_URL | nc -U PATH
where XMLTV_URL is the link you posted above and PATH is the path noted from the EPG grab config tab. Also netcat has a couple of variants which mean the -U can sometimes be -u. So might need to check the netcat manpage.
Thanks Adam, this worked great on my Ubuntu 12.04 x86_64.
I am now trying to do the same on my Synology NAS (Marvel Kirkwood ARM SoC), but I only have access to netcat - 1.10pl32-5 where "-U" is an invalid option. "-u" does not seem related to Unix Sockets, so perhaps you are aware of another method?
nc: invalid option -- U
nc -h for help
PYV-DiskStation> nc -h
[v1.10]
connect to somewhere: nc [-options] hostname port[s] [ports] ...
listen for inbound: nc -l -p port [-options] [hostname] [port]
options:
-c shell commands as `-e'; use /bin/sh to exec [dangerous!!]
-e filename program to exec after connect [dangerous!!]
-b allow broadcasts
-g gateway source-routing hop point[s], up to 8
-G num source-routing pointer: 4, 8, 12, ...
-h this cruft
-i secs delay interval for lines sent, ports scanned
-k set keepalive option on socket
-l listen mode, for inbound connects
-n numeric-only IP addresses, no DNS
-o file hex dump of traffic
-p port local port number
-r randomize local and remote ports
-q secs quit after EOF on stdin and delay of secs
-s addr local source address
-t answer TELNET negotiation
-u UDP mode
-v verbose [use twice to be more verbose]
-w secs timeout for connects and final net reads
-x tos set Type Of Service
-z zero-I/O mode [used for scanning]
port numbers can be individual or ranges: lo-hi [inclusive];
hyphens in port names must be backslash escaped (e.g. 'ftp\-data').