Shell Script To Cache Feedburner.com Chicklet Locally

A shell script to cache feedburner.com chicklet locally to improve performance by making fewer external http requests.

Install this script using a cron job:
@daily /path/to/script.sh

#!/bin/bash
# Shell Script to cache feedburner.com Chicklet locally
# -------------------------------------------------------------------------
# Copyright (c) 2007 nixCraft project <http://cyberciti.biz/fb/>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit http://bash.cyberciti.biz/ for more information.
# -------------------------------------------------------------------------
# Set me first #
# Your Feedburner url
FURL="http://feeds.feedburner.com/~fc/Nixcraft-LinuxFreebsdSolarisTipsTricks"
# local path to save gif file
LOCALFILE="/var/www/images/rss/feedburner.gif"
# local web server user
WUSER="lighttpd"
WGROUP="lighttpd"
 
# get file using wget  and set permissions
# $$ pass current PID to avoid Feedburner.com cache 
/usr/bin/wget -O "${LOCALFILE}" "${FURL}?$$" &> /dev/null
chown ${WUSER}:${WGROUP} ${LOCALFILE}

Run above script and modify your template / html code with following :

<img src="/path/to/feedburner.gif" alt="">
Get the latest tutorials on SysAdmin, Linux/Unix, Open Source, and DevOps topics:
CategoryList of Unix and Linux commands
File Management cat
Firewall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilities dig host ip nmap
OpenVPN CentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Manager apk apt
Processes Management bg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searching grep whereis which
User Information groups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPN CentOS 8 Debian 10 Firewall Ubuntu 20.04
0 comments… add one

Leave a Reply

Your email address will not be published. Required fields are marked *

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.