Shell Script To Cache Chicklet Locally

in Categories File-management, HTTP, Web Server last updated May 27, 2008

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

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

# Shell Script to cache Chicklet locally
# -------------------------------------------------------------------------
# Copyright (c) 2007 nixCraft project <>
# This script is licensed under GNU GPL version 2.0 or above
# -------------------------------------------------------------------------
# This script is part of nixCraft shell script collection (NSSC)
# Visit for more information.
# -------------------------------------------------------------------------
# Set me first #
# Your Feedburner url
# local path to save gif file
# local web server user
# get file using wget  and set permissions
# $$ pass current PID to avoid cache 
/usr/bin/wget -O "${LOCALFILE}" "${FURL}?$$" &> /dev/null

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

<img src="/path/to/feedburner.gif" alt="">

Share this on: