the tcl part:
Code: Select all
set fd [open $urllogfile a+]
set title [exec gettitle.sh $i]
puts $fd "$i;[ctime [unixtime]];$title;$nick;$chan"
close $fd
Code: Select all
#!/bin/sh
TITLE=`lynx -source $1 | grep -i "<title>" | awk -F "<title>" '{print $2}' | awk -F "</title>" '{print $1}'`
if [ "$TITLE" = "" ]; then
echo No Title Found
else
echo $TITLE
fi
Thanks in advance for any help or tips.