#!/bin/bash
echo trying to execute stuff script
#echo "document.write('" > ~/public_html/fortune.js
#fortune >> ~/public_html/fortune.js
#echo "');" >> ~/public_html/fortune.js
echo '<doctype html>' > ~/public_html/fortune.txt
echo '<html>' >> ~/public_html/fortune.txt
echo '<head>' >> ~/public_html/fortune.txt
echo '<link rel="stylesheet" type="text/css" href="./css/default.css">' >> ~/public_html/fortune.txt
echo '</head>' >> ~/public_html/fortune.txt
echo '<body>' >> ~/public_html/fortune.txt
fortune >> ~/public_html/fortune.txt
echo '</body>' >> ~/public_html/fortune.txt
echo '</html>' >> ~/public_html/fortune.txt
mv ~/public_html/fortune.txt  ~/public_html/fortune.html
echo done
