#!/bin/bash #Output to the webiste with a pipe and get the URL to post #set -x #parameters DIR=/srv/www/htdocs/s URL=http://houghi.eu/s MATRIX=(0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) #No need to change anything below here LEN=${#MATRIX[*]} #Make a random name DATE=`date +%s|rev` DATE=`echo "obase=${LEN};$DATE" | bc` for CHAR in $DATE do CHAR=`echo $CHAR|bc` FILE=${FILE}${MATRIX[$CHAR]} done #Write the actual filename while read LINE do echo "${LINE}" >> $DIR/$FILE done #What is the URL? echo $URL/$FILE