]> err.no Git - dotfiles/commitdiff
fix busstuc
authortfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 11 Sep 2005 08:08:44 +0000 (08:08 +0000)
committertfheen <tfheen@8da78d58-1cd3-0310-bee5-d77bd1b3e8bf>
Sun, 11 Sep 2005 08:08:44 +0000 (08:08 +0000)
git-svn-id: file:///svn/tfheen/trunk/dotfiles@827 8da78d58-1cd3-0310-bee5-d77bd1b3e8bf

environment

index 1080ca1d1569ea2bbb66edc64b263eb9b12e3933..9d59b92742e379ae77e7832a23cf0774d33d4825 100644 (file)
@@ -110,8 +110,8 @@ appendpathifdir () {
 }
 
 busstuc () {
-    echo "http://www.idi.ntnu.no/POST/tagore/busstuc/busq.pl?lang=nor&quest=$@" | \
-        xargs -0 wget -q -O - | \
+        echo "lang=nor&quest=$@" | \
+        xargs -0 -i wget -q -O - --post-data {} http://www.idi.ntnu.no/~tagore/cgi-bin/busstuc/busq.cgi| \
         html2text -width 1000| \
         sed '/[[:alpha:]]/p;d'
 }