BASE="https://folkets-lexikon.csc.kth.se"
LOC="folkets/service"
-LANG="both"
+LANGUAGE="both"
INTERFACE="sv"
LOG="/tmp/folkets/error.out"
HTML="/tmp/folkets/out.html"
form="
--data-urlencode word=$word
- --data-urlencode lang=$LANG
+ --data-urlencode lang=$LANGUAGE
--data-urlencode interface=$INTERFACE
"
mkdir -p $(dirname $LOG $HTML)
-curl -v -L --get ${form} ${url} 2> $LOG | w3m -T text/html
+/usr/bin/curl -v -L --get ${form} ${url} 2> $LOG |\
+ /usr/bin/w3m -T text/html
# Consider make also the call with w3m
# Consider put on stdout