=====Best Evar===== * The goal of this project is to in a very round about way post on the the great interwebs a random number every day at 4:58. =====Procedure===== * The first step is going to the writing of a C program that will generate a random number. * Step number 2 will involve writing a shell script to run the C program, print out all of the necessary html tags and include the randomly generated number * Step 3 involves the writing of another shell script to run the shell script and save * The last step is to set up a cron job that will run the second shell script at 4:58 every day =====Necessary Knowledge===== * Shell scripting * HTML * commands * C programming =====Stuff I Used===== * This is the C program #include int main() { srand(time(NULL)); printf("%d ", (rand() % 1200)); return(0); } * This is the first shell script /home/vcordes1/public_html/RndNumberGen > /home/vcordes1/public_html/RndNumber echo "" echo " " echo " Welcome to Random" echo " " echo " " echo " " echo "

This is the random number of the day: `cat RndNumber`

" echo "" echo ""
* This is the second shell script /home/vcordes1/public_html/RndNumberScript > /home/vcordes1/public_html/RndNumberPage.html =====Attributes===== * Scripting * Commands * Files and Directories * The Unix Shell * The Unix Development Environment * Text processing * Job Control & Multitasking =====Final Thinkings===== * A fun project only a little bit of a pain to get cron to find everything properly