My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
ME=`basename "$0"`
DIR=/home/shared/xmltv_guide
TM1=/tmp/$ME.$USER.tmp
UCACHE="$HOME/.cache"
mkdir -p "$UCACHE" || exit 1
CACHE="$UCACHE/$ME.daylist.txt"
{
cat "$CACHE"
ls "$DIR"/day-*.xmltv |
sed "s~^.*/\([^/]*\)$~\1~" |
tee "$TM1"
cat "$TM1"
} |
sort |
uniq -c |
grep "^[^0-9]*2[^0-9]" |
sed "s~^[^0-9]*2[^0-9]~~" |
sed "s~^~$DIR/~" |
xargs --no-run-if-empty ln -svt "$HOME/.freeguide/"
diff "$TM1" "$CACHE" ||
mv -v "$TM1" "$CACHE"
exec nice freeguide

Change log

r107 by bkil.hu on Jan 7, 2012   Diff
view_guide.sh added for viewing the guide
with freeguide after checking to see if
the cron job update_guide made any
modifications to import
Go to: 
Project members, sign in to write a code review

Older revisions

All revisions of this file

File info

Size: 471 bytes, 23 lines

File properties

svn:executable
*
Powered by Google Project Hosting