-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid config file #4
Comments
You shouldn't have spaces at the beginning/end of file path that are handled as-is meaning folders can have spaces there. Also check if you have all required apps mentioned in readme that we use installed. |
Thanks for the answer. Here is what i've made :
wget is installed, as is libxml2
|
Config seems OK, and you have libxml2-utils. Are you statrting this script with correct path to your config file as an arg? If path contains spaces you need to quote it. |
yes i'm sure about this
and both files are in the same directory |
Thats weird indeed. Let's try this, apply this change (either manually or as a git patch): diff --git a/shell-rss-torrent b/shell-rss-torrent
index 598736a..e4ed4cb 100755
--- a/shell-rss-torrent
+++ b/shell-rss-torrent
@@ -18,6 +18,9 @@ parse_config() {
if [ "$?" -ne 0 ]
then
echo "Error: invalid config file"
+ echo "WatchDir: \"$WatchDir\""
+ echo "ConfigData: \"$ConfigData\""
+ echo "ReadDir: \"$(echo "$ConfigData" | xmllint --xpath "string(//config/watchdir[1]/text())" -)\""
exit 1
fi
And try running your script like you usually do. It should print the values after your error. |
Hi,
Thanks for your script.
I have a problem with the config file.
I copied the bash script as it is, no modification...
Hten I created a xml file like this :
but i get :
Error: invalid config file
Did i make any mistake in writing the xml ?
Thanks for you help
The text was updated successfully, but these errors were encountered: