Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet thread from alt.ascii-art, started 25 Aug 2008.
 _   _                     _        _             _     _           
| | | |___  ___ _ __   ___| |_     / \   _ __ ___| |__ (_)_   _____ 
| | | / __|/ _ \ '_ \ / _ \ __|   / _ \ | '__/ __| '_ \| \ \ / / _ \
| |_| \__ \  __/ | | |  __/ |_   / ___ \| | | (__| | | | |\ V /  __/
 \___/|___/\___|_| |_|\___|\__| /_/   \_\_|  \___|_| |_|_| \_/ \___|
ASCII Art Fart for Fri, 2008 Aug 22: #3347 INCONTINENCE

ASCII Art Fart for Fri, 2008 Aug 22: #3347 INCONTINENCE

alt.ascii-art · 1 message · 25 Aug 2008
Faux_Pseudo <Fau...@gmail.com> ASCII art 25 Aug 2008 03:27 · raw headers · report
_.-In alt.ascii-art, Faux_Tran wrote the following -._
>  #3347 INCONTINENCE
> Taken from <url:http://www.asciiartfarts.com/>

Well after a few years of regular updates Tran has slacked recently
and he is only keeping about 4 farts in queue and they have drained
out a few times recently.  While the script I wrote to post them here
worked fine as long as they were being updated daily his on/off habits
of late have caused the script to post the same thing a few days in a
row and then I shut it off and manually check to see if he has updated
the site before restarting it.

That wasn't working so I just updated the script so that if the fart
hasn't changed then it will just not post anything.  Its a minor but
long overdue fix to the script.  Below is the new script which I am
posting in case somone has need of something like it for other needs.

#!/bin/bash
## start bad code that will need updating since
## it has no error checking at all.
source /home/faux/.bashrc
FART="$(lynx -dump -source  http://www.asciiartfarts.com/current.txt)"
TITLE="$(echo "$FART" | grep ^\# | head -1 | sed 's/ (.*//')" 
BODY="$(echo "$FART" | tail +10)"
SUBJECT="ASCII Art Fart for $(echo "$FART" | grep ^\# | head -1 | sed -e 's/.*(//' -e 's/).*//'): $TITLE"
echo " $TITLE" > /home/faux/.fart
echo "$BODY" >> /home/faux/.fart
echo -e '\nTaken from <url:http://www.asciiartfarts.com/>' >> /home/faux/.fart
diff /home/faux/.fart  /home/faux/.fart.old >/dev/null
if [[ "$?" == "0" ]]  ; then : ; else 
newspost  -i news.east.cox.net -f "$EDRESS" -F Faux_Tran -n \
 alt.ascii-art -s "$SUBJECT" -t /home/faux/.fart #2>/dev/null 1>/dev/null
fi
cp  /home/faux/.fart  /home/faux/.fart.old
##EOF

-- 
=()==()==()==()==()- http://fauxascii.com 
  \   \   \   \   \   \  ASCII artist
 :F_P:-O- -O- -O- -O- -O- -O-  -O-   Get your ASCII Art T-Shirt:
http://www.keystroketshirts.com/ascii/dream-in-ascii-fullView.php

About this thread. These messages were posted publicly to the newsgroup alt.ascii-art in 2008 and are mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you one of the authors? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post