- November 30, 2020
- 1
- 0
- Home Country
-
India
Hi,
I have prepared shell script to fetch EPG on Ubuntu Machine as follows
#/bin/bash
now=$(date +"%m_%d_%Y")
cd /home/ubuntu/
tv_grab_na_dtv --config-file wward.conf --output /home/ubuntu/xencast/public/epg_$now.xml --days 1
If run above script on Ubuntu command terminal , able to get EPG data.
If you run same script on crontab , got below error.
30 23 * * * bash epg.sh
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "read timeout at /usr...") at /usr/bin/tv_grab_na_dtv line 459
Could help me to resolve above error.
Rgds
Venkatesan K
I have prepared shell script to fetch EPG on Ubuntu Machine as follows
#/bin/bash
now=$(date +"%m_%d_%Y")
cd /home/ubuntu/
tv_grab_na_dtv --config-file wward.conf --output /home/ubuntu/xencast/public/epg_$now.xml --days 1
If run above script on Ubuntu command terminal , able to get EPG data.
If you run same script on crontab , got below error.
30 23 * * * bash epg.sh
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "read timeout at /usr...") at /usr/bin/tv_grab_na_dtv line 459
Could help me to resolve above error.
Rgds
Venkatesan K