

#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <ctype.h>

int (){
	system("wget -p --convert-links http://www.cs.rmit.edu./students/");
	system("mkdir old");
	system("mv www.cs.rmit.edu./images/*.*   old/");
	system("mv www.cs.rmit.edu./students/*.* old/");
	sleep(86400);
	system("wget -p --convert-links http://www.cs.rmit.edu./students/");
	system("mkdir new");
	system("mv www.cs.rmit.edu./images/*.*  new/");
	system("mv www.cs.rmit.edu./students/*.* new/");
	system("diff old new > report.txt");
	system("mailx -s   \"Report of difference \"    < report.txt ");
	exit(1);
}





#include <stdio.h>
#include <stdlib.h>
#include <errno.h>

int () {

 while (1) { 

    system("wget -p www.cs.rmit.edu.");\

    system("mkdir sitefiles");

    system("cp www.cs.rmit.edu./index.html sitefiles");
    system("diff sitefiles/index.html www.cs.rmit.edu./index.html | mail @cs.rmit.edu.");

    system("md5sum www.cs.rmit.edu./images/*.* > imageInfo.txt");
    system("diff imageInfo.txt sitefiles/imageInfo.txt | mail @cs.rmit.edu.");

    system("cp imageInfo.txt sitefiles");
    sleep(86400);
  }
 
}
