Cześć!
Pisałem skrypt, który pobiera z imdb dane filmu. I wyskakuje mi: "./moviedata.sh: line 48: lynx: command not found" w terminalu. (48 linijka to ta ostatnia z lynxem. Mógłby ktoś pomóc rozwiązać problem?
#!/bin/bash
titleurl="http://www.imdb.com/title/tt"
imdburl="http://www.imdb.com/find?s=tt&exact=true&ref_=fn_tt_ex&q="
tempout="/tmp/moviedata.$$"
summarize_film()
{
grep "<title>" $tempout | sed 's/<[^>]*>//g;s/(more)//'
grep --color=never -A2 '<h5>Plot:' $tempout | tail -1 | \
cut -d\< -f1 | fmt | sed 's/^/ /'
exit 0
}
(...)
fixedname="$(echo $@ | tr ' ' '+')"
url="$imdburl$fixedname"
lynx -source $imdburl$fixedname > $tempout