function chkDIR(){ if [ ! -d "/home/mollusk/syncs/techsnap" ] then mkdir /home/mollusk/syncs/techsnap mv cache/* /home/mollusk/syncs/techsnap elif [ -d "/home/mollusk/syncs/techsnap" ] then mv cache/* /home/mollusk/syncs/techsnap fi } function TechSnap1(){ #Directories local ODIR="/home/mollusk/syncs/techsnap1/" podcatcher="/home/mollusk/podcatcher/bin/podcatcher" #Feeds local MP3feed="http://feeds.feedburner.com/techsnapmp3" local OGGfeed="http://feeds.feedburner.com/techsnapogg" local HDfeed="http://feeds.feedburner.com/techsnaphd" local MOBILEfeed="http://feeds.feedburner.com/techsnapmobile" #Podcatacher local OPTS="-v -e -s 1000 -p" #mkdir ${ODIR} rm -R ${ODIR}* #MP3 Feed ${podcatcher} ${OPTS} ${MP3feed} #-D ${ODIR} #OGG Feed #${podcatcher} ${OPTS} ${OGGfeed} -D ${ODIR} #HD Video Feed #${podcatcher} ${OPTS} ${HDfeed} -D ${ODIR} #Mobile Video Feed #${podcatcher} ${OPTS} ${MOBILEfeed} -D ${ODIR} chkDIR } TechSnap1