I have created a very simple script file:
Bash
#!/bin/bash
wget -q http://www.vuplus-community.net/rytec/rytecxmltv-UK.gz -O /storage/autoepg/rytecxmltv-UK.gz
cd /storage/autoepg
gunzip -f /storage/autoepg/rytecxmltv-UK.gz
It downloads okay. But when i run the script in putty (to test, I want to automate this everyday). It comes with the following messages:
Code
LibreELEC:~ # sh epg.sh
epg.sh: cd: line 3: can't cd to /storage/autoepg
gunzip: /storage/autoepg/rytecxmltv-UK.gz: No such file or directory
What am i doing wrong?