summaryrefslogtreecommitdiffstats
path: root/rtail
blob: 345eed3819a62fc5ca9fc2aa98268161ff4bf1c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/zsh
setopt shwordsplit
#tail="rsstail -ldHP -b 100 -n 2 -i 800 -u "
tail="rsstail -ldHP  -n 2 -i 800 -u "
urls=$(cat ~/.rurls)
command="multitail -D  "
counter=1
for x in $urls[(f)1,-1]
do
    #if [[ ! $x == *rss* || ! $x == *xml ]];then
    #    rssurl=$(~/bin/autorss.py "$x")
    #else
        rssurl="$x"
    #fi
    xtail="$tail $rssurl"
    if [[ $counter == 1 ]];then
        command="$command  -cS rsstail -l \"${xtail}\""
    else
        command="$command  -cS rsstail -L \"${xtail}\""
    fi
    counter=$(($counter+1))
done

#echo "${=command}"
#read
eval "${=command}"