ysneshy
(usa Arch Linux)
Enviado em 10/11/2013 - 16:37h
/usr/share/conkycolors/bin/conkyBBCWeather: line 19: curl: comando não encontrado
mas nesse aruqivo tem isso e nao vejo erro nenhum
#!/bin/bash
# By helmuthdu
MIN="min"
MAX="max"
CUR="cur"
HUMIDITY="hum"
UNIT="c"
if [ "$3" == "$UNIT" ]; then
if [ "$1" == "$CUR" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/observations.rss" | sed -n '/Temperature/p' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/^.*Temperature: $
elif [ "$1" == "$MAX" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/3dayforecast.rss" | sed -n '/Max Temp/p' | sed '2!d' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/<[^>]*>$
elif [ "$1" == "$MIN" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/3dayforecast.rss" | sed -n '/Max Temp/p' | sed '2!d' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/<[^>]*>$
elif [ "$1" == "$HUMIDITY" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/3dayforecast.rss" | sed -n '/Max Temp/p' | sed '2!d' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/<[^>]*>$
fi
else
if [ "$1" == "$CUR" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/observations.rss" | sed -n '/Temperature/p' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/^.*Temperature: $
elif [ "$1" == "$MAX" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/3dayforecast.rss" | sed -n '/Max Temp/p' | sed '2!d' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/^.*Max $
elif [ "$1" == "$MIN" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/3dayforecast.rss" | sed -n '/Max Temp/p' | sed '2!d' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/^.*Min $
elif [ "$1" == "$HUMIDITY" ]; then
curl -s --connect-timeout 30 "http://open.live.bbc.co.uk/weather/feeds/en/$2/3dayforecast.rss" | sed -n '/Max Temp/p' | sed '2!d' | sed -e 's/°/ /g' | sed -e 's/%/%/g' | sed 's/<[^>]*>$
fi
fi
ja reinstalei varias vezes mas isso nao some o erro