Skip to content

Instantly share code, notes, and snippets.

@pads
Created May 21, 2013 13:07
Show Gist options
  • Save pads/5619628 to your computer and use it in GitHub Desktop.
Save pads/5619628 to your computer and use it in GitHub Desktop.
This simple script came about as a way to find out what would happen between twikifier and tiddlyspace when testing failure scenarios (such as killing processes randomly).
#!/bin/sh
if [ $# -lt 3 ]; then
echo "Usage: `basename $0` space_url port tiddler_title"
exit 1
fi
SPACE_URL=$1
PORT=$2
TIDDLER=$3
while [ true ]
do
wget http://$SPACE_URL:$PORT/$TIDDLER
sleep 1
cat $TIDDLER
rm $TIDDLER
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment