#!c:\perl\bin\perl.exe

print "alternate between staticpage0.html and staticpage1.html\n";
$counter = 0;
while (true) {
  sleep(5);
  $i=$counter%2;
  $j=$counter%2;
  $cmd="copy staticpage$i.html staticpage.html";
  $cmd1="copy C:\\Inetpub\\wwwroot\\ayeddula\\tasks$j.html C:\\Inetpub\\wwwroot\\ayeddula\\tasks.html";
  print $cmd . "\n";
  print $cmd1 . "\n";
  system($cmd);
  system($cmd1);
  $counter++;
}